diff --git a/src/Accounts/Accounts/Az.Accounts.psd1 b/src/Accounts/Accounts/Az.Accounts.psd1 index d9e6e5c5db4c..cd3ea5e93a0d 100644 --- a/src/Accounts/Accounts/Az.Accounts.psd1 +++ b/src/Accounts/Accounts/Az.Accounts.psd1 @@ -116,8 +116,8 @@ CmdletsToExport = 'Disable-AzDataCollection', 'Disable-AzContextAutosave', # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. AliasesToExport = 'Add-AzAccount', 'Login-AzAccount', 'Remove-AzAccount', - 'Logout-AzAccount', 'Select-AzSubscription', 'Resolve-Error', - 'Save-AzProfile', 'Get-AzDomain', 'Invoke-AzRest', 'Set-AzConfig' + 'Logout-AzAccount', 'Select-AzSubscription', 'Save-AzProfile', + 'Get-AzDomain', 'Invoke-AzRest', 'Set-AzConfig' # DSC resources to export from this module # DscResourcesToExport = @() diff --git a/src/Accounts/Accounts/ChangeLog.md b/src/Accounts/Accounts/ChangeLog.md index 7d0906d40c67..3dfa0b350c71 100644 --- a/src/Accounts/Accounts/ChangeLog.md +++ b/src/Accounts/Accounts/ChangeLog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release +* [Breaking Change] Removed alias `Resolve-Error` for the cmdlet `Resolve-AzError`. * Updated the `Get-AzAccessToken` breaking change warning message. * Added Long Running Operation Support for Invoke-AzRest command. diff --git a/src/Accounts/Accounts/Errors/ResolveError.cs b/src/Accounts/Accounts/Errors/ResolveError.cs index 5c6db96384ae..a5c88173aed7 100644 --- a/src/Accounts/Accounts/Errors/ResolveError.cs +++ b/src/Accounts/Accounts/Errors/ResolveError.cs @@ -25,12 +25,10 @@ namespace Microsoft.Azure.Commands.Profile.Errors { - [Alias("Resolve-Error")] [Cmdlet("Resolve", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Error", DefaultParameterSetName = ResolveError.AnyErrorParameterSet)] [OutputType(typeof(AzureErrorRecord))] [OutputType(typeof(AzureExceptionRecord))] [OutputType(typeof(AzureRestExceptionRecord))] - [GenericBreakingChangeWithVersion("The alias 'Resolve-Error' will be removed. Please use 'Resolve-AzError' instead.", "13.0.0", "4.0.0")] public class ResolveError : AzureRMCmdlet { public const string AnyErrorParameterSet = "AnyErrorParameterSet"; diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/README.md b/src/DesktopVirtualization/DesktopVirtualization.Autorest/README.md index a1843909ac96..3b0a741157bb 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/README.md +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/README.md @@ -99,52 +99,9 @@ directive: verb: Get subject: ActiveApplication remove: true - - where: - verb: Remove + - where: + verb: Remove subject: UserSession parameter-name: Force set: parameter-description: 'Specify to force userSession deletion.' - - where: - verb: Register - set: - preview-announcement: - preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409) - estimated-ga-date: 2024-11-19 - - where: - verb: Unregister - set: - preview-announcement: - preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409) - estimated-ga-date: 2024-11-19 - - where: - verb: Send - set: - preview-announcement: - preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409) - estimated-ga-date: 2024-11-19 - - where: - verb: Expand - set: - preview-announcement: - preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409) - estimated-ga-date: 2024-11-19 - - where: - verb: Get - set: - preview-announcement: - preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409) - estimated-ga-date: 2024-11-19 - - where: - verb: New - set: - preview-announcement: - preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409) - estimated-ga-date: 2024-11-19 - - where: - verb: Update - set: - preview-announcement: - preview-message: This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409) - estimated-ga-date: 2024-11-19 -``` diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generate-portal-ux.ps1 b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generate-portal-ux.ps1 index 7e97a28c6ed1..2e834c51738b 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generate-portal-ux.ps1 +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generate-portal-ux.ps1 @@ -247,7 +247,16 @@ function New-MetadataForParameterSet() $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo + if ($Null -eq $example) + { + $example = @() + } + [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo + if ($Null -eq $signature) + { + $signature = @() + } return @{ Path = $httpPath diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs index 04810ca8766b..0fe7c120bcf1 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_Expand.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_Expand", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs index e5c2967afa01..cbb9d1d88aab 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs index 263043306913..2f6b3a5d4a1d 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs index 963e2f30f6ad..eb8a768403fc 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonFilePath.cs index 577de5666260..5630527afad7 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonString.cs index c27330076ee0..b3629baf1dd0 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/ExpandAzWvdMsixImage_ExpandViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Expand=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/expandMsixImage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Expand, @"AzWvdMsixImage_ExpandViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IExpandMsixImage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Expands and Lists MSIX packages in an Image, given the Image Path.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_Get.cs index bcf6fa01a4b2..4ef9b0b60044 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdAppAttachPackage_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an app attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_GetViaIdentity.cs index c008a3ff7c6c..a0e8df7226f9 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdAppAttachPackage_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an app attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List.cs index 73c4c4c6074e..ff10e15e62b8 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdAppAttachPackage_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List App Attach packages in resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List1.cs index 84831e04034b..cc9696ef27e1 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdAppAttachPackage_List1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/appAttachPackages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdAppAttachPackage_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List App Attach packages in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs index 2452dea0596a..1cc08ed98e74 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs index 239315049bfd..f2d61b551923 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs index d50e13549a73..5d792ea943b1 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applicationGroups.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs index 4978013ee67a..af3487939eb0 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplicationGroup_List1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/applicationGroups" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplicationGroup_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applicationGroups in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_Get.cs index a8d3fbd7d89e..5d4c0ba91aa0 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplication_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentity.cs index 0bb52af753ab..c7a6754fa76d 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplication_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentityApplicationGroup.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentityApplicationGroup.cs index dd32c599b437..6ce34a8e8430 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentityApplicationGroup.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_GetViaIdentityApplicationGroup.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplication_GetViaIdentityApplicationGroup")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_List.cs index 64a914522912..8f49b0276c32 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdApplication_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdApplication_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List applications.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_Get.cs index 2d5f965ae502..8bf37dc69513 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdDesktop_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentity.cs index 43fae15d0d38..f3650343f832 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdDesktop_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentityApplicationGroup.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentityApplicationGroup.cs index eaaf1461f88a..f855c9866cd9 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentityApplicationGroup.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_GetViaIdentityApplicationGroup.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdDesktop_GetViaIdentityApplicationGroup")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_List.cs index b262e1f82a18..87015dec9a36 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdDesktop_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdDesktop_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List desktops.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_List.cs index 247584940752..65c442354e36 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListRegistrationTokens=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/listRegistrationTokens" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPoolRegistrationToken_List", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationTokenList))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Operation to list the RegistrationTokens associated with the HostPool")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_Retrieve.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_Retrieve.cs index c8e46d84e4da..2c0a566a27d3 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_Retrieve.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_Retrieve.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] RetrieveRegistrationToken=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/retrieveRegistrationToken" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPoolRegistrationToken_Retrieve", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Registration token of the host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity.cs index 2063239a7e44..a333acd92f24 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPoolRegistrationToken_RetrieveViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] RetrieveRegistrationToken=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/retrieveRegistrationToken" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPoolRegistrationToken_RetrieveViaIdentity", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IRegistrationInfo))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Registration token of the host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_Get.cs index 063d76c0e393..875be757fb72 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPool_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_GetViaIdentity.cs index fc785164a956..c7fe85cbce0d 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPool_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List.cs index 1f06439d6510..bc89058abf7e 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPool_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List hostPools.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List1.cs index cb6f4b3e5709..7cc0e28bc318 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdHostPool_List1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/hostPools" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdHostPool_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List hostPools in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_Get.cs index aee9476fabc4..ceea78bab962 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdMsixPackage_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a msixpackage.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentity.cs index d55f4e248c69..370617e333cc 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdMsixPackage_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a msixpackage.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentityHostPool.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentityHostPool.cs index 55cd6c6bb8a3..e330ea1cbdcd 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentityHostPool.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_GetViaIdentityHostPool.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdMsixPackage_GetViaIdentityHostPool")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a msixpackage.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_List.cs index bf584080830c..9b5c28a62db5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdMsixPackage_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdMsixPackage_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List MSIX packages in hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get.cs index ee416bab1151..fd17079586a5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] GetByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get1.cs index 5275af98a995..d3c60046b206 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_Get1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] GetByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_Get1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity.cs index ae5e9474b681..9409646d8d40 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] GetByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity1.cs index 7e7adcc3520b..d2a38adaafb8 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentity1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] GetByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_GetViaIdentity1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool.cs index 982a6939f2e1..d1751690249f 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityHostPool.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] GetByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_GetViaIdentityHostPool")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace.cs index 866bf46483f7..5b00abf6a8d5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_GetViaIdentityWorkspace.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] GetByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections/{privateEndpointConnectionName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_GetViaIdentityWorkspace")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a private endpoint connection.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List.cs index ec69476f4463..4fa6c18b2394 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateEndpointConnections" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List private endpoint connections.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List1.cs index a868f3c4a396..f859ed089475 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateEndpointConnection_List1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateEndpointConnections" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateEndpointConnection_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateEndpointConnectionWithSystemData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List private endpoint connections associated with hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List.cs index dc4a048204c9..d00804921aa4 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByWorkspace=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}/privateLinkResources" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateLinkResource_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List the private link resources available for this workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List1.cs index 0f018575b086..6c0703129522 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdPrivateLinkResource_List1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/privateLinkResources" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdPrivateLinkResource_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IPrivateLinkResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List the private link resources available for this hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_Get.cs index 2ece37bfa4e7..0e559697a8f2 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlanPersonalSchedule_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity.cs index 72216a62bda6..2f1b9df4d1eb 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlanPersonalSchedule_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan.cs index 865a13904799..f6491066864a 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlanPersonalSchedule_GetViaIdentityScalingPlan")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_List.cs index 5c62fb2c59ad..fdca8621a24f 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPersonalSchedule_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlanPersonalSchedule_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List ScalingPlanPersonalSchedules.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_Get.cs index aa85eb08bbe0..f2811b18240d 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlanPooledSchedule_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentity.cs index 261cb64bb812..0eb5a692ac0b 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlanPooledSchedule_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan.cs index 4afc58e7c649..109042220e93 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlanPooledSchedule_GetViaIdentityScalingPlan")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_List.cs index 56cc972804f9..da32399565b5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlanPooledSchedule_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlanPooledSchedule_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List ScalingPlanPooledSchedules.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_Get.cs index 28482a75f526..d3182afcdd5a 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlan_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_GetViaIdentity.cs index ee09deff22d1..738dbecb3a23 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlan_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List.cs index 9f0872d36f72..7703161598c1 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlan_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plans.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List1.cs index 5277b08e4a44..95ad91f75150 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/scalingPlans" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlan_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plans in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List2.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List2.cs index 121f76621b21..aa4ef3dc2d79 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List2.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdScalingPlan_List2.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/scalingPlans" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdScalingPlan_List2")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List scaling plan associated with hostpool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_Get.cs index d8a3f294d1a4..c526065ab4d0 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdSessionHost_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentity.cs index 4ba4daea7a68..670c291038e3 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdSessionHost_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentityHostPool.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentityHostPool.cs index 8a756c5de894..e273d904a991 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentityHostPool.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_GetViaIdentityHostPool.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdSessionHost_GetViaIdentityHostPool")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_List.cs index 93e46e1ca660..722803c563a5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdSessionHost_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdSessionHost_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List sessionHosts.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdStartMenuItem_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdStartMenuItem_List.cs index fd8a9018ce4d..4b159a89cdac 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdStartMenuItem_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdStartMenuItem_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/startMenuItems" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdStartMenuItem_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IStartMenuItem))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List start menu items in the given application group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_Get.cs index a54046552233..c01f843fc050 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdUserSession_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentity.cs index 299275857474..173098c3e75e 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdUserSession_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentityHostPool.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentityHostPool.cs index bbd1540c986a..4d322ca7e5be 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentityHostPool.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentityHostPool.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdUserSession_GetViaIdentityHostPool")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentitySessionHost.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentitySessionHost.cs index f785f6a55786..3ee641839e01 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentitySessionHost.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_GetViaIdentitySessionHost.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdUserSession_GetViaIdentitySessionHost")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a userSession.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List.cs index 8b066875028d..1fa2f41aaefe 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByHostPool=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdUserSession_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List userSessions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List1.cs index e5e2bd83b38c..5fde5feecd05 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdUserSession_List1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdUserSession_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IUserSession))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List userSessions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_Get.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_Get.cs index 58c267de2a73..e27c1c16be3e 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_Get.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_Get.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdWorkspace_Get")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_GetViaIdentity.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_GetViaIdentity.cs index 7c460921061c..557f7a7ba8c9 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_GetViaIdentity.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_GetViaIdentity.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdWorkspace_GetViaIdentity")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Get a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List.cs index 1f7a957a21fe..a87f9041ce13 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdWorkspace_List")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List workspaces.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List1.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List1.cs index 7c196e7436f0..a17deca08b9c 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List1.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/GetAzWvdWorkspace_List1.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] ListBySubscription=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzWvdWorkspace_List1")] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"List workspaces in subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateExpanded.cs index d77593eeef64..ec8068b04ad7 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdAppAttachPackage_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an App Attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonFilePath.cs index 377244182f91..ec190a7c7054 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdAppAttachPackage_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an App Attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonString.cs index 118c603617e9..d919551ecfa5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdAppAttachPackage_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdAppAttachPackage_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an App Attach package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateExpanded.cs index 8ab3e9df74aa..19c281c26ab2 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdApplicationGroup_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonFilePath.cs index af15f39fe87e..a72fe8986d16 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdApplicationGroup_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonString.cs index 60caa232f927..b41314310438 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplicationGroup_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdApplicationGroup_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateExpanded.cs index 546b57e9fb73..160ebd22e506 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdApplication_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonFilePath.cs index 665d4b094632..828916fe23ec 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdApplication_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonString.cs index 0e20918fe1a5..0d28b98e5886 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdApplication_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdApplication_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateExpanded.cs index a1f703172793..0980d9dcf86a 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdHostPool_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonFilePath.cs index 13f02aa514a8..6231af883917 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdHostPool_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonString.cs index 1ef698fbbf70..9cdc9be097bf 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdHostPool_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdHostPool_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateExpanded.cs index adaa247766bd..3e422b7fd525 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdMsixPackage_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a MSIX package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonFilePath.cs index 7e83938b7e11..f271e5220454 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdMsixPackage_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a MSIX package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonString.cs index 0887dcc07078..d92a6de5e81f 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdMsixPackage_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdMsixPackage_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a MSIX package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateExpanded.cs index 076dce610b16..3d3844a7e1ca 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlanPersonalSchedule_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath.cs index 9092d8059b2d..654e904ce06c 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlanPersonalSchedule_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString.cs index 6352bac503fb..30ccd0321bd7 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPersonalSchedule_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlanPersonalSchedule_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateExpanded.cs index 760309b27856..ec354277836e 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlanPooledSchedule_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath.cs index 4146d2b0891e..428628674a21 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlanPooledSchedule_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString.cs index 3a592e620bdd..38dd744ae100 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlanPooledSchedule_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlanPooledSchedule_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateExpanded.cs index ded94c5328b4..3926c1f591f3 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlan_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonFilePath.cs index 84f1fc974216..3744128a8c2c 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlan_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonString.cs index 2ed8d4e08831..ddd956dcd309 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdScalingPlan_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdScalingPlan_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateExpanded.cs index eca53cd629c2..c0ab1fcc9ea9 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdWorkspace_CreateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonFilePath.cs index 03687f210e33..b61ccd29cde7 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdWorkspace_CreateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonString.cs index a0289c2a6a04..342b49058200 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/NewAzWvdWorkspace_CreateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzWvdWorkspace_CreateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"create a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendExpanded.cs index cea76ddc529c..373380ab8a66 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] SendMessage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzWvdUserSessionMessage_SendExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityExpanded.cs index 7c024905d35b..114a5d2acc46 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] SendMessage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzWvdUserSessionMessage_SendViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPool.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPool.cs index 52e35f324b7a..e1890a4429c6 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPool.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPool.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] SendMessage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzWvdUserSessionMessage_SendViaIdentityHostPool", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded.cs index ada876cf63e1..56660d503d0d 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] SendMessage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzWvdUserSessionMessage_SendViaIdentityHostPoolExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHost.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHost.cs index 7e471c7bcf59..f50c2b96b574 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHost.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHost.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] SendMessage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzWvdUserSessionMessage_SendViaIdentitySessionHost", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded.cs index 839963e18d33..d87a23dd3937 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] SendMessage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzWvdUserSessionMessage_SendViaIdentitySessionHostExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonFilePath.cs index 274930727e44..5803b0e43b21 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] SendMessage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzWvdUserSessionMessage_SendViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonString.cs index 6dd2f5680203..df2bd9dc2f43 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/SendAzWvdUserSessionMessage_SendViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] SendMessage=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}/userSessions/{userSessionId}/sendMessage" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommunications.Send, @"AzWvdUserSessionMessage_SendViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"Send a message to a user.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateExpanded.cs index fcb83879845b..280ddb2548d0 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdAppAttachPackage_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an App Attach Package")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded.cs index 8941af3683ae..338ffacce8a1 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdAppAttachPackage_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an App Attach Package")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath.cs index 9d228488f03e..0009869ccd83 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdAppAttachPackage_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an App Attach Package")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonString.cs index 679d0eefa970..1ae684c560d0 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdAppAttachPackage_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdAppAttachPackage_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IAppAttachPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an App Attach Package")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateExpanded.cs index 97dc339a2201..79453fec14b9 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplicationGroup_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded.cs index 2e88c3edd515..512e9f86f9dd 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplicationGroup_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath.cs index cf477319a418..28f7cb4d82e0 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplicationGroup_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonString.cs index 0091820ee14e..cc38eaca64f8 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplicationGroup_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplicationGroup_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplicationGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an applicationGroup.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateExpanded.cs index 032e225e8857..cea262557d55 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplication_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup.cs index c139700e8da0..51cefddb76bd 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroup.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplication_UpdateViaIdentityApplicationGroup", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded.cs index f45b33f1ad95..c071ef50e9f8 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityApplicationGroupExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplication_UpdateViaIdentityApplicationGroupExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityExpanded.cs index 7ecd38f3186d..e65c37309d68 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplication_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonFilePath.cs index b6f058295671..d6b1fa28ebd4 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplication_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonString.cs index 7b07b75a2d4f..7584d2bfe3bd 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdApplication_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/applications/{applicationName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdApplication_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IApplication))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an application.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateExpanded.cs index 942032edb889..445295cbd990 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdDesktop_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup.cs index 2c8d1b85e691..af5e8b2794ed 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroup.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdDesktop_UpdateViaIdentityApplicationGroup", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded.cs index 0d66352efe15..dbb76b592f3d 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdDesktop_UpdateViaIdentityApplicationGroupExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityExpanded.cs index 111c83e95e39..8f8e0b271d82 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdDesktop_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonFilePath.cs index e3b93b146132..8203c6292171 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdDesktop_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonString.cs index b41705067ad5..595df5880908 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdDesktop_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/applicationGroups/{applicationGroupName}/desktops/{desktopName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdDesktop_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IDesktop))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a desktop.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateExpanded.cs index 3975c1ce94f2..db9c62d3f6e5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdHostPool_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaIdentityExpanded.cs index f4f284c71253..7efd4732029e 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdHostPool_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonFilePath.cs index 578b401ea533..d00534cd4df6 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdHostPool_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonString.cs index 67369fb6324f..c8957d8a4501 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdHostPool_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdHostPool_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IHostPool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a host pool.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateExpanded.cs index de60aa1ee15e..9b55bbfcf537 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded.cs index 528e42afc72a..f5f41dc1e8e9 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool.cs index 46dacfe2c32d..58c0518ead09 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPool.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaIdentityHostPool", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded.cs index c2ea0a6f829b..3cd913096ba3 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaIdentityHostPoolExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonFilePath.cs index 7b0858762d8d..5b9992ab942d 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonString.cs index 405b3e6b581f..8a44cf323849 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdMsixPackage_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/msixPackages/{msixPackageFullName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdMsixPackage_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IMsixPackage))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update an MSIX Package.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded.cs index 938112540f15..12f286d6c9fe 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPersonalSchedule_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded.cs index dbe0109ef984..5b778a49e780 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPersonalSchedule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan.cs index 79081630293c..8f664b02c481 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlan", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded.cs index b8fb7c89ef6b..839487ed424d 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPersonalSchedule_UpdateViaIdentityScalingPlanExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath.cs index 210c6e2d66b0..a247cf39532c 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPersonalSchedule_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString.cs index 0793e979ac70..f919a7072a94 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPersonalSchedule_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/personalSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPersonalSchedule_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPersonalSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPersonalSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded.cs index 0cc8f365577d..eae6e465c90e 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPooledSchedule_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded.cs index 9246635aec40..5da88883e8ee 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPooledSchedule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan.cs index 50aa82303f0e..662d60eb264b 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlan", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded.cs index 0fc6dee67e69..84f4180cced4 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPooledSchedule_UpdateViaIdentityScalingPlanExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath.cs index eb03ee94b819..5049cbec753b 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPooledSchedule_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString.cs index 4d062f584121..0c5b67c49e0c 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlanPooledSchedule_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}/pooledSchedules/{scalingPlanScheduleName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlanPooledSchedule_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlanPooledSchedule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a ScalingPlanPooledSchedule.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateExpanded.cs index 7dbf95194f6c..9525ebb25edc 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlan_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded.cs index 80e017d9a9c8..079ebce09bae 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlan_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonFilePath.cs index d58a318da630..95b1e64d7f55 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlan_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonString.cs index a04ea2c9b0fc..b75aa663e567 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdScalingPlan_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/scalingPlans/{scalingPlanName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdScalingPlan_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IScalingPlan))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a scaling plan.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateExpanded.cs index d63bf4dbb502..60152c6584ac 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdSessionHost_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityExpanded.cs index f0c2671eeda3..bc890cc48a8b 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdSessionHost_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPool.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPool.cs index f21eb0ed4ae3..da851c86d8e9 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPool.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPool.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdSessionHost_UpdateViaIdentityHostPool", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded.cs index edffbddabb78..24042052e8c5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaIdentityHostPoolExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdSessionHost_UpdateViaIdentityHostPoolExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonFilePath.cs index eeb5a3d0f554..6346c07dd9e0 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdSessionHost_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonString.cs index 3d622e3e8095..608c4e600310 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdSessionHost_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/sessionHosts/{sessionHostName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdSessionHost_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.ISessionHost))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a session host.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateExpanded.cs index d99faba04275..4ec6c3a83d50 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdWorkspace_UpdateExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaIdentityExpanded.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaIdentityExpanded.cs index 6292b3ae64ee..6782c09c5ea7 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaIdentityExpanded.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaIdentityExpanded.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdWorkspace_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonFilePath.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonFilePath.cs index b8f0f030c577..2ddd47f90ed5 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonFilePath.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonFilePath.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdWorkspace_UpdateViaJsonFilePath", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonString.cs b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonString.cs index 96c39bf229bb..c9f171c1dd31 100644 --- a/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonString.cs +++ b/src/DesktopVirtualization/DesktopVirtualization.Autorest/generated/cmdlets/UpdateAzWvdWorkspace_UpdateViaJsonString.cs @@ -15,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/workspaces/{workspaceName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzWvdWorkspace_UpdateViaJsonString", SupportsShouldProcess = true)] - [Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Runtime.PreviewMessage("This release will contain numerous breaking changes, please view the preannouncement here (https://go.microsoft.com/fwlink/?linkid=2292409)", "2024-11-19T00:00:00.000Z")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.IWorkspace))] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Description(@"update a workspace.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Generated] diff --git a/src/DesktopVirtualization/DesktopVirtualization/Az.DesktopVirtualization.psd1 b/src/DesktopVirtualization/DesktopVirtualization/Az.DesktopVirtualization.psd1 index 3cddb1c282dc..2efad1787183 100644 --- a/src/DesktopVirtualization/DesktopVirtualization/Az.DesktopVirtualization.psd1 +++ b/src/DesktopVirtualization/DesktopVirtualization/Az.DesktopVirtualization.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/5/2024 +# Generated on: 11/12/2024 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.4'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.5'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml index 5f44e91e893d..10afe77ab8bf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml +++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.format.ps1xml @@ -11,9 +11,21 @@ + + + + + + + + + + + + @@ -42,9 +54,21 @@ DnsForwardingRulesetName + + DnsResolverDomainListName + DnsResolverName + + DnsResolverPolicyName + + + DnsResolverPolicyVirtualNetworkLinkName + + + DnsSecurityRuleName + ForwardingRuleName @@ -72,15 +96,67 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail + + + + + + + + + + + + + + + + + + Code + + + Message + + + Target + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ProxyResource - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ProxyResource + + + + + + + + + + + + + + + + + + @@ -88,15 +164,33 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource @@ -116,9 +210,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData @@ -145,22 +239,638 @@ - CreatedAt + CreatedAt + + + CreatedBy + + + CreatedByType + + + LastModifiedAt + + + LastModifiedBy + + + LastModifiedByType + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Location + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody + + + + + + + + + + + + + + + + + + Code + + + Message + + + Target + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetListResult + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties + + + + + + + + + + + + + + + ProvisioningState + + + ResourceGuid + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Location + + + Name + + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + + + Etag + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties + + + + + + + + + + + + Domain + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties + + + + + + + + + + + + + + + + + + Domain + + + ProvisioningState + + + ResourceGuid + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListResult + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverListResult + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverListResult + + + + + + + + + + + + NextLink + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags + + + + + + + + + + + + Item + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Location + + + Name + + + SystemDataCreatedAt - CreatedBy + SystemDataCreatedBy - CreatedByType + SystemDataCreatedByType - LastModifiedAt + SystemDataLastModifiedAt - LastModifiedBy + SystemDataLastModifiedBy - LastModifiedByType + SystemDataLastModifiedByType + + + Etag @@ -168,27 +878,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyListResult - - - - + - Name - - - Location + NextLink @@ -196,9 +900,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags @@ -218,33 +922,27 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties - - - - + - + - Code - - - Message + ProvisioningState - Target + ResourceGuid @@ -252,9 +950,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink @@ -264,6 +962,24 @@ + + + + + + + + + + + + + + + + + + @@ -277,6 +993,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + Etag @@ -286,9 +1020,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkListResult @@ -308,9 +1042,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags @@ -330,12 +1064,37 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties + + + + + + + + + + + + ProvisioningState + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties + + + @@ -346,6 +1105,9 @@ + + DnsResolverState + ProvisioningState @@ -358,9 +1120,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule @@ -370,6 +1132,24 @@ + + + + + + + + + + + + + + + + + + @@ -383,6 +1163,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + Etag @@ -392,9 +1190,37 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction + + + + + + + + + + + + + + + ActionType + + + BlockResponseCode + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleListResult @@ -414,9 +1240,37 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties + + + + + + + + + + + + + + + DnsSecurityRuleState + + + Priority + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags @@ -436,33 +1290,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties - + - + - + - DnsResolverState + DnsSecurityRuleState - ProvisioningState + Priority - ResourceGuid + ProvisioningState @@ -470,15 +1324,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule + + + + + + + + + + + + + + + + + + @@ -489,6 +1361,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + Etag @@ -498,9 +1388,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleListResult @@ -520,9 +1410,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties @@ -542,9 +1432,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata @@ -564,9 +1454,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties @@ -598,9 +1488,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata @@ -620,9 +1510,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint @@ -632,6 +1522,24 @@ + + + + + + + + + + + + + + + + + + @@ -645,6 +1553,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + Etag @@ -654,9 +1580,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointListResult @@ -676,9 +1602,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags @@ -698,9 +1624,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties @@ -726,9 +1652,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration @@ -754,9 +1680,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint @@ -766,6 +1692,24 @@ + + + + + + + + + + + + + + + + + + @@ -779,6 +1723,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + Etag @@ -788,9 +1750,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointListResult @@ -810,9 +1772,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags @@ -832,9 +1794,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties @@ -860,9 +1822,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResourceListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceListResult @@ -882,9 +1844,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer @@ -910,9 +1872,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkDnsForwardingRulesetListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetListResult @@ -932,15 +1894,33 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink + + + + + + + + + + + + + + + + + + @@ -951,6 +1931,24 @@ Name + + SystemDataCreatedAt + + + SystemDataCreatedBy + + + SystemDataCreatedByType + + + SystemDataLastModifiedAt + + + SystemDataLastModifiedBy + + + SystemDataLastModifiedByType + Etag @@ -960,9 +1958,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkListResult - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkListResult + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkListResult @@ -982,9 +1980,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata @@ -1004,9 +2002,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties @@ -1026,9 +2024,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata diff --git a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 index 5f018fbe227a..1cca5ee40fec 100644 --- a/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 +++ b/src/DnsResolver/DnsResolver.Autorest/Az.DnsResolver.psd1 @@ -1,7 +1,7 @@ @{ GUID = '88e239b3-f615-4018-adf3-f0952a0f46a8' RootModule = './Az.DnsResolver.psm1' - ModuleVersion = '0.2.1' + ModuleVersion = '0.2.9' CompatiblePSEditions = 'Core', 'Desktop' Author = 'Microsoft Corporation' CompanyName = 'Microsoft Corporation' @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.DnsResolver.private.dll' FormatsToProcess = './Az.DnsResolver.format.ps1xml' - FunctionsToExport = 'Get-AzDnsForwardingRuleset', 'Get-AzDnsForwardingRulesetForwardingRule', 'Get-AzDnsForwardingRulesetVirtualNetworkLink', 'Get-AzDnsResolver', 'Get-AzDnsResolverInboundEndpoint', 'Get-AzDnsResolverOutboundEndpoint', 'New-AzDnsForwardingRuleset', 'New-AzDnsForwardingRulesetForwardingRule', 'New-AzDnsForwardingRulesetVirtualNetworkLink', 'New-AzDnsResolver', 'New-AzDnsResolverInboundEndpoint', 'New-AzDnsResolverIPConfigurationObject', 'New-AzDnsResolverOutboundEndpoint', 'New-AzDnsResolverTargetDnsServerObject', 'Remove-AzDnsForwardingRuleset', 'Remove-AzDnsForwardingRulesetForwardingRule', 'Remove-AzDnsForwardingRulesetVirtualNetworkLink', 'Remove-AzDnsResolver', 'Remove-AzDnsResolverInboundEndpoint', 'Remove-AzDnsResolverOutboundEndpoint', 'Update-AzDnsForwardingRuleset', 'Update-AzDnsForwardingRulesetForwardingRule', 'Update-AzDnsForwardingRulesetVirtualNetworkLink', 'Update-AzDnsResolver', 'Update-AzDnsResolverInboundEndpoint', 'Update-AzDnsResolverOutboundEndpoint', '*' + FunctionsToExport = 'Get-AzDnsForwardingRuleset', 'Get-AzDnsForwardingRulesetForwardingRule', 'Get-AzDnsForwardingRulesetVirtualNetworkLink', 'Get-AzDnsResolver', 'Get-AzDnsResolverDomainList', 'Get-AzDnsResolverInboundEndpoint', 'Get-AzDnsResolverOutboundEndpoint', 'Get-AzDnsResolverPolicy', 'Get-AzDnsResolverPolicyDnsSecurityRule', 'Get-AzDnsResolverPolicyVirtualNetworkLink', 'New-AzDnsForwardingRuleset', 'New-AzDnsForwardingRulesetForwardingRule', 'New-AzDnsForwardingRulesetVirtualNetworkLink', 'New-AzDnsResolver', 'New-AzDnsResolverDomainList', 'New-AzDnsResolverInboundEndpoint', 'New-AzDnsResolverIPConfigurationObject', 'New-AzDnsResolverOutboundEndpoint', 'New-AzDnsResolverPolicy', 'New-AzDnsResolverPolicyDnsSecurityRule', 'New-AzDnsResolverPolicyVirtualNetworkLink', 'New-AzDnsResolverTargetDnsServerObject', 'Remove-AzDnsForwardingRuleset', 'Remove-AzDnsForwardingRulesetForwardingRule', 'Remove-AzDnsForwardingRulesetVirtualNetworkLink', 'Remove-AzDnsResolver', 'Remove-AzDnsResolverDomainList', 'Remove-AzDnsResolverInboundEndpoint', 'Remove-AzDnsResolverOutboundEndpoint', 'Remove-AzDnsResolverPolicy', 'Remove-AzDnsResolverPolicyDnsSecurityRule', 'Remove-AzDnsResolverPolicyVirtualNetworkLink', 'Update-AzDnsForwardingRuleset', 'Update-AzDnsForwardingRulesetForwardingRule', 'Update-AzDnsForwardingRulesetVirtualNetworkLink', 'Update-AzDnsResolver', 'Update-AzDnsResolverDomainList', 'Update-AzDnsResolverInboundEndpoint', 'Update-AzDnsResolverOutboundEndpoint', 'Update-AzDnsResolverPolicy', 'Update-AzDnsResolverPolicyDnsSecurityRule', 'Update-AzDnsResolverPolicyVirtualNetworkLink', '*' AliasesToExport = '*' PrivateData = @{ PSData = @{ diff --git a/src/DnsResolver/DnsResolver.Autorest/README.md b/src/DnsResolver/DnsResolver.Autorest/README.md index d93edb2e4a4f..9784ee68e3cd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/README.md +++ b/src/DnsResolver/DnsResolver.Autorest/README.md @@ -67,13 +67,14 @@ In this directory, run AutoRest: > see https://aka.ms/autorest ``` yaml -commit: 37072829f795ce840b8085035e8adf4721602f34 +commit: 6286ea80b3ac7eecfc2f230d65b2034a656f10bf require: - $(this-folder)/../../readme.azure.noprofile.md input-file: - - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/stable/2022-07-01/dnsresolver.json + - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dnsresolver.json + - $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/preview/2023-07-01-preview/dnsresolverpolicy.json -module-version: 0.2.1 +module-version: 0.2.9 title: DnsResolver subject-prefix: DnsResolver @@ -88,7 +89,23 @@ use-extension: directive: - where: - subject: ForwardingRule|VirtualNetworkLink + subject: DnsResolverPolicyVirtualNetworkLink + set: + subject-prefix: '' + - where: + subject: DnsResolverPolicy + set: + subject-prefix: '' + - where: + subject: DnsResolverDomainList + set: + subject-prefix: '' + - where: + subject: DnsSecurityRule + set: + subject-prefix: 'DnsResolverPolicy' + - where: + subject: ^(ForwardingRule|VirtualNetworkLink)$ set: subject-prefix: DnsForwardingRuleset - where: diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json index 9a5507651a41..f77a12a5b62e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-forwardingRules.json @@ -1,6 +1,6 @@ { "resourceType": "dnsForwardingRulesets/forwardingRules", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json index 5b97c00ecfb3..5caee06682fc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets-virtualNetworkLinks.json @@ -1,6 +1,6 @@ { "resourceType": "dnsForwardingRulesets/virtualNetworkLinks", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json index bdf86afe41c0..d21009e56ef7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsForwardingRulesets.json @@ -1,6 +1,6 @@ { "resourceType": "dnsForwardingRulesets", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json new file mode 100644 index 000000000000..bb05c13b53ff --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverDomainLists.json @@ -0,0 +1,85 @@ +{ + "resourceType": "dnsResolverDomainLists", + "apiVersion": "2023-07-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" + }, + "commands": [ + { + "name": "Get-AzDnsResolverDomainList", + "description": "Gets properties of a DNS resolver domain list.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets properties of a DNS resolver domain list.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dnsResolverDomainListName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDnsResolverDomainList", + "description": "Deletes a DNS resolver domain list.\nWARNING: This operation cannot be undone.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dnsResolverDomainListName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json new file mode 100644 index 000000000000..4d4099244ddb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-dnsSecurityRules.json @@ -0,0 +1,95 @@ +{ + "resourceType": "dnsResolverPolicies/dnsSecurityRules", + "apiVersion": "2023-07-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" + }, + "commands": [ + { + "name": "Get-AzDnsResolverPolicyDnsSecurityRule", + "description": "Gets properties of a DNS security rule for a DNS resolver policy.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule" + }, + "parameterSets": [ + { + "parameters": [ + "-DnsResolverPolicyName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets properties of a DNS security rule for a DNS resolver policy.", + "parameters": [ + { + "name": "-DnsResolverPolicyName", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-Name", + "value": "[Path.dnsSecurityRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDnsResolverPolicyDnsSecurityRule", + "description": "Deletes a DNS security rule for a DNS resolver policy.\nWARNING: This operation cannot be undone.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule" + }, + "parameterSets": [ + { + "parameters": [ + "-DnsResolverPolicyName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.", + "parameters": [ + { + "name": "-DnsResolverPolicyName", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-Name", + "value": "[Path.dnsSecurityRuleName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json new file mode 100644 index 000000000000..c4e0b9b24a6a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies-virtualNetworkLinks.json @@ -0,0 +1,95 @@ +{ + "resourceType": "dnsResolverPolicies/virtualNetworkLinks", + "apiVersion": "2023-07-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" + }, + "commands": [ + { + "name": "Get-AzDnsResolverPolicyVirtualNetworkLink", + "description": "Gets properties of a DNS resolver policy virtual network link.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink" + }, + "parameterSets": [ + { + "parameters": [ + "-DnsResolverPolicyName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets properties of a DNS resolver policy virtual network link.", + "parameters": [ + { + "name": "-DnsResolverPolicyName", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-Name", + "value": "[Path.dnsResolverPolicyVirtualNetworkLinkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDnsResolverPolicyVirtualNetworkLink", + "description": "Deletes a DNS resolver policy virtual network link.\nWARNING: This operation cannot be undone.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink" + }, + "parameterSets": [ + { + "parameters": [ + "-DnsResolverPolicyName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.", + "parameters": [ + { + "name": "-DnsResolverPolicyName", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-Name", + "value": "[Path.dnsResolverPolicyVirtualNetworkLinkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json new file mode 100644 index 000000000000..c5c576ac208a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolverPolicies.json @@ -0,0 +1,85 @@ +{ + "resourceType": "dnsResolverPolicies", + "apiVersion": "2023-07-01-preview", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" + }, + "commands": [ + { + "name": "Get-AzDnsResolverPolicy", + "description": "Gets properties of a DNS resolver policy.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets properties of a DNS resolver policy.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzDnsResolverPolicy", + "description": "Deletes a DNS resolver policy.\nWARNING: This operation cannot be undone.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes a DNS resolver policy. WARNING: This operation cannot be undone.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.dnsResolverPolicyName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json index 272a477dbe62..b3884546a71e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-inboundEndpoints.json @@ -1,6 +1,6 @@ { "resourceType": "dnsResolvers/inboundEndpoints", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json index f20b4ff3278c..24dfdf15ced6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers-outboundEndpoints.json @@ -1,6 +1,6 @@ { "resourceType": "dnsResolvers/outboundEndpoints", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json index b83d61d53adc..1a48e64a4617 100644 --- a/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json +++ b/src/DnsResolver/DnsResolver.Autorest/UX/Microsoft.Network/dnsResolvers.json @@ -1,6 +1,6 @@ { "resourceType": "dnsResolvers", - "apiVersion": "2022-07-01", + "apiVersion": "2023-07-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dnsresolver" }, diff --git a/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 b/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 index 06a44d848dab..a2b66b2a9fd9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/build-module.ps1 @@ -12,7 +12,7 @@ # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs) +param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [Switch]$DisableAfterBuildTasks) $ErrorActionPreference = 'Stop' if($PSEdition -ne 'Core') { @@ -67,6 +67,8 @@ if(-not $Isolated -and -not $Debugger) { $binFolder = Join-Path $PSScriptRoot 'bin' $objFolder = Join-Path $PSScriptRoot 'obj' +$isAzure = [System.Convert]::ToBoolean('true') + if(-not $Debugger) { Write-Host -ForegroundColor Green 'Cleaning build folders...' $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder @@ -143,7 +145,7 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + $addComplexInterfaceInfo = !$isAzure Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } @@ -169,4 +171,13 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') } -Write-Host -ForegroundColor Green '-------------Done-------------' +if (-not $DisableAfterBuildTasks){ + $afterBuildTasksPath = Join-Path $PSScriptRoot '' + $afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable + if(Test-Path -Path $afterBuildTasksPath -PathType leaf){ + Write-Host -ForegroundColor Green 'Running after build tasks...' + . $afterBuildTasksPath @afterBuildTasksArgs + } +} + +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1 index 90a8bad7419b..72be3a645550 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverIPConfigurationObject.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/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.Api20220701.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -41,7 +41,7 @@ function New-AzDnsResolverIPConfigurationObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration]::New() $Object.PrivateIPAddress = $PrivateIPAddress $Object.PrivateIPAllocationMethod = $PrivateIPAllocationMethod diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1 b/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1 index 7e4d62e3f019..136788403a4c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/New-AzDnsResolverTargetDnsServer.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/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.Api20220701.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -38,7 +38,7 @@ function New-AzDnsResolverTargetDnsServerObject { ) process { - $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer]::New() + $Object = [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer]::New() $Object.IPAddress = $IPAddress $Object.Port = $Port diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs index 13e63ff020b9..4b550a734a03 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs index 06379cf2d7d4..eea2a55811a9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs index 284c4de79936..e06506163fcd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetForwardingRule_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs index 215c29c551e4..5dd49836408f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs index 4c7927ea454a..e0ccea4ab632 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs index 6553a2fba9af..c270c4d2318c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs index 48569896d5ed..8f10c5524210 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs index 6c87d623aaf4..1e5b179a6b68 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs index 6ab83448beee..7a2cf4dda384 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs index f232521c612b..ef3d54dfd9e9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List1.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs index ec9602a694f9..27f3197d1828 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsForwardingRuleset_List2.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs index 965cdf6df0e0..220420dba371 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs index 5ad676adfcc9..fbbf6824f420 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs index 65cc9c8885b6..63abd7851723 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverInboundEndpoint_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs index 3bbb373cab60..106283ae5ec7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs index 2647a2f0663d..7a079fff1140 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs index dbee9c07c962..8f13ef7d00cb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolverOutboundEndpoint_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs index 03ffd748bd08..a7980b0dd60f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_Get.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs index 81491fed2648..8460ae8d23ba 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_GetViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs index c5a0f2b0b226..adc348e9105d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs index 2bd4042d9d10..2bd6b50b8410 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List1.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs index 635708246a47..779d947b23ef 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/GetAzDnsResolver_List2.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs index a66c87734c2e..7092dfc48ed9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs index b6b058fa55da..5d12d380b182 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs index e5af8f9eed5a..5f10592aebf4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsForwardingRuleset_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs index 30d3261e21a7..97e9d966f0dc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs index e3d0d5d7415f..745ab35405fc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs index 9fb45c298c83..4dafa7790a3a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/NewAzDnsResolver_CreateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs index b1a496dd6591..70608bc296f0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs index 176a713f441f..f43ecec111c2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs index 9a8c1fe4d1f0..5191f9c7d003 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs index 40f981f3debc..ce94cd074333 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs index 3327a608e8cd..9ea4135ad1bb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs index 9b5d5816cf3a..563ec52ec2f7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs index 14c66d0d16db..404d83b8a7f8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs index c5a10741f749..f81aa9e26f29 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs index 05137e51e4d1..77433cf1228e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs index 48b64a61e204..8bfab6370bc2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs index 4eb610b0777d..636805b5debd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_Delete.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs index f4e4d0128c78..b8188805b2b3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RemoveAzDnsResolver_DeleteViaIdentity.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs index 6e1d3edc4fa5..11c49e265644 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/RestErrorHandler.cs @@ -4,7 +4,7 @@ using System.Management.Automation; using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs index 5963049071e2..010406b21962 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs index f55ade7a32e8..d41babdefd91 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs index 5fc2eece2720..ed004f5f1dda 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs index 4abc84269377..5519eda80754 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs index 7887ea5bacda..6db9bc3be056 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs index 89f6b9d75d82..98a123a07562 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs index b443c18e48a3..f71b0e6f39b1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs index d019f7a06a9f..47d3f01db5d6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs index 16f67fe81aec..47a2830c9ba3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs index 3909f5d7d9b2..f8cd7c19db91 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs index 6b43981d680e..ba1dbbcf01b3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs index 46820ab60c7f..e10d82d701cc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/custom/csharp/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs @@ -3,7 +3,7 @@ using System.Net.Http; using System.Threading.Tasks; -using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701; +using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview; namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets { diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..c7c5bdae02de --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverDomainList.md @@ -0,0 +1,50 @@ +### Example 1: List all DNS Resolver Domain Lists under the subscription +```powershell +Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverdomainlisttestresolver2422 Microsoft.Network/dnsResolverDomainLists "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverdomainlisttestresolver2654 Microsoft.Network/dnsResolverDomainLists "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverdomainlisttestresolver8416 Microsoft.Network/dnsResolverDomainLists "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverdomainlisttestresolver5036 Microsoft.Network/dnsResolverDomainLists "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverdomainlisttestresolver3718 Microsoft.Network/dnsResolverDomainLists "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverdomainlisttestresolver2758 Microsoft.Network/dnsResolverDomainLists "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverdomainlisttestresolver7108 Microsoft.Network/dnsResolverDomainLists "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverdomainlisttestresolver7639 Microsoft.Network/dnsResolverDomainLists "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverdomainlisttestresolver5912 Microsoft.Network/dnsResolverDomainLists "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverdomainlisttestguli01 Microsoft.Network/dnsResolverDomainLists "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverdomainlisttestresolver9892 Microsoft.Network/dnsResolverDomainLists "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Domain Lists under the subscription. + +### Example 2: List all DNS Resolver Domain Lists under the resource group +```powershell +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000" +westus2 psdnsresolverdomainlistname34dp19g6 Microsoft.Network/dnsResolverDomainLists "0000c9d4-0000-0800-0000-604013990000" +westus2 psdnsresolverdomainlistname35m3jf0n Microsoft.Network/dnsResolverDomainLists "0000d0d4-0000-0800-0000-604013a80000" +``` + +This command gets all DNS Resolver Domain Lists under the resource group. + +### Example 3: Get single DNS Resolver by name +```powershell +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Domain List by name. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..b5c9830c0480 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicy.md @@ -0,0 +1,50 @@ +### Example 1: List all DNS Resolver Policies under the subscription +```powershell +Get-AzDnsResolverPolicy -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverpolicytestresolver2422 Microsoft.Network/dnsResolverPolicies "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverpolicytestresolver2654 Microsoft.Network/dnsResolverPolicies "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverpolicytestresolver8416 Microsoft.Network/dnsResolverPolicies "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverpolicytestresolver5036 Microsoft.Network/dnsResolverPolicies "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverpolicytestresolver3718 Microsoft.Network/dnsResolverPolicies "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverpolicytestresolver2758 Microsoft.Network/dnsResolverPolicies "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverpolicytestresolver7108 Microsoft.Network/dnsResolverPolicies "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverpolicytestresolver7639 Microsoft.Network/dnsResolverPolicies "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverpolicytestresolver5912 Microsoft.Network/dnsResolverPolicies "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverpolicytestguli01 Microsoft.Network/dnsResolverPolicies "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverpolicytestresolver9892 Microsoft.Network/dnsResolverPolicies "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Policies under the subscription. + +### Example 2: List all DNS Resolver Policies under the resource group +```powershell +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000" +westus2 psdnsresolverpolicyname34dp19g6 Microsoft.Network/dnsResolverPolicies "0000c9d4-0000-0800-0000-604013990000" +westus2 psdnsresolverpolicyname35m3jf0n Microsoft.Network/dnsResolverPolicies "0000d0d4-0000-0800-0000-604013a80000" +``` + +This command gets all DNS Resolver Policies under the resource group. + +### Example 3: Get single DNS Resolver by name +```powershell +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Policy by name. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..de25a32198ce --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,35 @@ +### Example 1: List all DNS Security Rule under the dns resolver policy +```powershell +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnssecurityruletestresolver2422 Microsoft.Network/dnsSecurityRules "8b002671-0000-0800-0000-60386dc10000" +westus2 dnssecurityruletestresolver2654 Microsoft.Network/dnsSecurityRules "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnssecurityruletestresolver8416 Microsoft.Network/dnsSecurityRules "94008a5e-0000-0800-0000-603972f20000" +westus2 dnssecurityruletestresolver5036 Microsoft.Network/dnsSecurityRules "8b002f71-0000-0800-0000-60386df80000" +westus2 dnssecurityruletestresolver3718 Microsoft.Network/dnsSecurityRules "00009b95-0000-0800-0000-603e8b210000" +westus2 dnssecurityruletestresolver2758 Microsoft.Network/dnsSecurityRules "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnssecurityruletestresolver7108 Microsoft.Network/dnsSecurityRules "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnssecurityruletestresolver7639 Microsoft.Network/dnsSecurityRules "8b00b670-0000-0800-0000-60386b010000" +westus2 dnssecurityruletestresolver5912 Microsoft.Network/dnsSecurityRules "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnssecurityruletestguli01 Microsoft.Network/dnsSecurityRules "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnssecurityruletestresolver9892 Microsoft.Network/dnsSecurityRules "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Security Rule under the dns resolver policy. + +### Example 2: Get single DNS Security Rule by name +```powershell +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnssecurityrulename33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Security Rule by name. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..773f36da2d88 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Get-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,35 @@ +### Example 1: List all DNS Resolver Policy Links under the dns resolver policy +```powershell +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverpolicylinktestresolver2422 Microsoft.Network/dnsResolverPolicyLinks "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverpolicylinktestresolver2654 Microsoft.Network/dnsResolverPolicyLinks "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverpolicylinktestresolver8416 Microsoft.Network/dnsResolverPolicyLinks "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverpolicylinktestresolver5036 Microsoft.Network/dnsResolverPolicyLinks "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverpolicylinktestresolver3718 Microsoft.Network/dnsResolverPolicyLinks "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverpolicylinktestresolver2758 Microsoft.Network/dnsResolverPolicyLinks "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverpolicylinktestresolver7108 Microsoft.Network/dnsResolverPolicyLinks "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverpolicylinktestresolver7639 Microsoft.Network/dnsResolverPolicyLinks "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverpolicylinktestresolver5912 Microsoft.Network/dnsResolverPolicyLinks "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverpolicylinktestguli01 Microsoft.Network/dnsResolverPolicyLinks "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverpolicylinktestresolver9892 Microsoft.Network/dnsResolverPolicyLinks "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Policy Links under the dns resolver policy. + +### Example 2: Get single DNS Resolver Policy Link by name +```powershell +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Policy Link by name. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..6d392ab560d7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverDomainList.md @@ -0,0 +1,26 @@ +### Example 1: Create a DNS resolver domain list +```powershell +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverDomainList Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver domain list. + + +### Example 2: Create a DNS resolver domain list with tag +```powershell +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverDomainList Microsoft.Network/dnsResolverPolicies "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver domain list with tag. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..42f1d323c2dc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicy.md @@ -0,0 +1,26 @@ +### Example 1: Create a DNS resolver policy +```powershell +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver policy. + + +### Example 2: Create a DNS resolver policy with tag +```powershell +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver policy with tag. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..0d1587ec841f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,24 @@ +### Example 1: Create a DNS security rule +```powershell +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS security rule. + +### Example 2: Create a DNS security rule with tag +```powershell +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS security rule with tag. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..561762d363a0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/New-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,26 @@ +### Example 1: Create a DNS resolver policy link +```powershell +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver policy link. + + +### Example 2: Create a DNS resolver policy link with tag +```powershell +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver policy link with tag. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..8b7fcd62acd1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverDomainList.md @@ -0,0 +1,14 @@ +### Example 1: Remove a DNS Resolver Domain List by name +```powershell +Remove-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` +This command removes a DNS Resolver Domain List by name. + +### Example 2: Remove a DNS Resolver Domain List by identity +```powershell +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject +``` + +This command removes a DNS Resolver Domain List by identity. + diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..eeaf5f37980a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicy.md @@ -0,0 +1,14 @@ +### Example 1: Remove a Dns Resolver Policy by name +```powershell +Remove-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` +This command removes a Dns Resolver Policy by name. + +### Example 2: Remove a Dns Resolver Policy by identity +```powershell +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject +``` + +This command removes a Dns Resolver Policy by identity. + diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..1b7915c5bfb8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,13 @@ +### Example 1: Remove a DNS Security Rule by name +```powershell +Remove-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +``` +This command removes a DNS Security Rule by name. + +### Example 2: Remove a DNS Security Rule by identity +```powershell +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject +``` + +This command removes a DNS Security Rule by identity. diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..07b876e50a7f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Remove-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,14 @@ +### Example 1: Remove a DNS Resolver Policy Link by name +```powershell +Remove-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +``` +This command removes a DNS Resolver Policy Link by name. + +### Example 2: Remove a DNS Resolver Policy Link by identity +```powershell +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject +``` + +This command removes a DNS Resolver Policy Link by identity. + diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..992a8c58b02f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverDomainList.md @@ -0,0 +1,25 @@ +### Example 1: Update an existing DNS Resolver Domain List by name +```powershell +Update-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Domain List by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver Domain List by identity +```powershell +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000" +``` +This command updates an existing DNS Resolver Domain List by identity ( removing tag ). diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..190781e2b41b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicy.md @@ -0,0 +1,25 @@ +### Example 1: Update an existing DNS Resolver Policy by name +```powershell +Update-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver Policy by identity +```powershell +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000" +``` +This command updates an existing DNS Resolver Policy by identity ( removing tag ). diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..f2298d295090 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,25 @@ +### Example 1: Update an existing DNS Security Rule by name +```powershell +Update-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Security Rules by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver by identity +```powershell +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000" +``` +This command updates an existing DNS Security Rules by identity ( removing tag ). diff --git a/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..532d7cd77757 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/examples/Update-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,25 @@ +### Example 1: Update an existing DNS Resolver Policy Link by name +```powershell +Update-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy Links by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver by identity +```powershell +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000" +``` +This command updates an existing DNS Resolver Policy Links by identity ( removing tag ). diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 index f06ea8b387cf..c98c645983f2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRuleset.ps1 @@ -31,9 +31,9 @@ Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -41,20 +41,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset #> function Get-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -81,6 +85,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 index e1ea4ed9fdce..d63b831e9960 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetForwardingRule.ps1 @@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule #> function Get-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +83,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index b046168aa07f..cf02411acc22 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdns .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink #> function Get-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +83,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 index 85838826ef05..8a8407fb9da4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolver.ps1 @@ -31,9 +31,9 @@ Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virt .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource .Notes COMPLEX PARAMETER PROPERTIES @@ -41,20 +41,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver #> function Get-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -81,6 +85,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 new file mode 100644 index 000000000000..4b13d48d7140 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverDomainList.ps1 @@ -0,0 +1,237 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a DNS resolver domain list. +.Description +Gets properties of a DNS resolver domain list. +.Example +Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +.Example +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg +.Example +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist +#> +function Get-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverDomainList_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List1'; + } + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 index b1861bb34d04..92922169ab3c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverInboundEndpoint.ps1 @@ -27,7 +27,7 @@ Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint #> function Get-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +83,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 index 7d4838794cbc..f9816b557454 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverOutboundEndpoint.ps1 @@ -27,7 +27,7 @@ Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint #> function Get-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +83,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 new file mode 100644 index 000000000000..19f69511223e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicy.ps1 @@ -0,0 +1,248 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a DNS resolver policy. +.Description +Gets properties of a DNS resolver policy. +.Example +Get-AzDnsResolverPolicy -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +.Example +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg +.Example +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy +#> +function Get-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List2')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network. + ${VirtualNetworkName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicy_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List1'; + List2 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List2'; + } + if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 new file mode 100644 index 000000000000..fc9dc0e0d7ef --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -0,0 +1,239 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a DNS security rule for a DNS resolver policy. +.Description +Gets properties of a DNS security rule for a DNS resolver policy. +.Example +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +.Example +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnssecurityrulename33nmy1fz + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule +#> +function Get-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyDnsSecurityRule_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 new file mode 100644 index 000000000000..246c40c06acd --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Get-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -0,0 +1,239 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Gets properties of a DNS resolver policy virtual network link. +.Description +Gets properties of a DNS resolver policy virtual network link. +.Example +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +.Example +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink +#> +function Get-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyVirtualNetworkLink_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 index 477ee39bf162..ba5768c75e7b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRuleset.ps1 @@ -27,7 +27,7 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu New-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Location westus2 -DnsResolverOutboundEndpoint @{id = "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/dnsResolvers/sampleResolver/outboundEndpoints/sampleOutboundEndpoint";} -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -39,7 +39,7 @@ DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset #> function New-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -61,6 +61,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -81,7 +82,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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}, @@ -94,7 +95,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 index 1753f536c72f..4b0f271cecb1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetForwardingRule.ps1 @@ -27,7 +27,7 @@ $targetIPConfig = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0. New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -40,7 +40,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to. https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule #> function New-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -68,6 +68,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -94,7 +95,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, @@ -108,7 +109,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index a83265e7f07c..2a31dc51c031 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -25,12 +25,12 @@ New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwar New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" -Metadata @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink #> function New-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -58,6 +58,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -83,7 +84,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 index 5319ba6750f6..b6003d2a86ca 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolver.ps1 @@ -25,12 +25,12 @@ New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -Vi New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver #> function New-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -52,6 +52,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -83,7 +84,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 new file mode 100644 index 000000000000..03886bbb5ef8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverDomainList.ps1 @@ -0,0 +1,239 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a DNS resolver domain list. +.Description +Creates or updates a DNS resolver domain list. +.Example +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") +.Example +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist +#> +function New-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String[]] + # The domains in the domain list. + ${Domain}, + + [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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverDomainList_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 index 88348a090d91..627d45bac83c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverIPConfigurationObject.ps1 @@ -23,12 +23,12 @@ Create a in-memory object for IPConfiguration New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 1.1.2.12 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44yqt9mb/subnets/pssubnetname44c6v0lr .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 index 215176d0e5dd..b69eaaa510b0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverInboundEndpoint.ps1 @@ -27,7 +27,7 @@ New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sa New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -41,7 +41,7 @@ IPCONFIGURATION : IP configurations for the inbound endpoint https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint #> function New-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -69,6 +69,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -89,7 +90,7 @@ param( [Parameter(Mandatory)] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]] # IP configurations for the inbound endpoint. # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table. ${IPConfiguration}, @@ -102,7 +103,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 index 734576a14e76..7021a4eee924 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverOutboundEndpoint.ps1 @@ -25,12 +25,12 @@ New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOu New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName powershell-test-rg -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -Tag @{"key0" = "value0"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint #> function New-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -58,6 +58,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter()] @@ -89,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.Api20.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 new file mode 100644 index 000000000000..d6c1cb7af809 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicy.ps1 @@ -0,0 +1,232 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a DNS resolver policy. +.Description +Creates or updates a DNS resolver policy. +.Example +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 +.Example +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy +#> +function New-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicy_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 new file mode 100644 index 000000000000..b7c97802faaa --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -0,0 +1,281 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a DNS security rule for a DNS resolver policy. +.Description +Creates or updates a DNS security rule for a DNS resolver policy. +.Example +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} + +.Example +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule +.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. + +DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to. + Id : Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule +#> +function New-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.Int32] + # The priority of the DNS security rule. + ${Priority}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode] + # The response code for block actions. + ${ActionBlockResponseCode}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType] + # The type of action to take. + ${ActionType}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState] + # The state of DNS security rule. + ${DnsSecurityRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 new file mode 100644 index 000000000000..49de79b8acfa --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -0,0 +1,244 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Creates or updates a DNS resolver policy virtual network link. +.Description +Creates or updates a DNS resolver policy virtual network link. +.Example +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +.Example +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink +#> +function New-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # 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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 index bd937adf11c0..e763ac8664a3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/New-AzDnsResolverTargetDnsServerObject.ps1 @@ -23,12 +23,12 @@ Create a in-memory object for Target DNS server New-AzDnsResolverIPConfigurationObject -PrivateIPAddress 10.0.0.3 -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub/subnets/test-subnet .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 index 5be64390a79e..345f6051c2a1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -27,7 +27,7 @@ Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverNa .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -35,20 +35,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetforwardingrule #> function Get-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -79,6 +83,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -246,7 +251,7 @@ Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdns .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -254,20 +259,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingrulesetvirtualnetworklink #> function Get-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -298,6 +307,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -469,9 +479,9 @@ Get-AzDnsForwardingRuleset -ResourceGroupName sampleRG -VirtualNetworkName virtu .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -479,20 +489,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsforwardingruleset #> function Get-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -519,6 +533,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -685,18 +700,20 @@ end { <# .Synopsis -Gets properties of an inbound endpoint for a DNS resolver. +Gets properties of a DNS resolver domain list. .Description -Gets properties of an inbound endpoint for a DNS resolver. +Gets properties of a DNS resolver domain list. .Example -Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -ResourceGroupName powershell-test-rg +Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 .Example -Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg +.Example +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -704,34 +721,31 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist #> -function Get-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] -[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] +function Get-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] - [Parameter(ParameterSetName='List', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, - - [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('InboundEndpointName')] + [Alias('DnsResolverDomainListName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the inbound endpoint for the DNS resolver. + # The name of the DNS resolver domain list. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -744,10 +758,12 @@ param( [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -758,6 +774,7 @@ param( ${InputObject}, [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] [System.Int32] # The maximum number of results to return. @@ -839,11 +856,12 @@ begin { } $mapping = @{ - Get = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_Get'; - GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_GetViaIdentity'; - List = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_List'; + Get = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolverDomainList_List1'; } - if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -904,18 +922,18 @@ end { <# .Synopsis -Gets properties of an outbound endpoint for a DNS resolver. +Gets properties of an inbound endpoint for a DNS resolver. .Description -Gets properties of an outbound endpoint for a DNS resolver. +Gets properties of an inbound endpoint for a DNS resolver. .Example -Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName sampleResourceGroup +Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -ResourceGroupName powershell-test-rg .Example -Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -923,20 +941,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverinboundendpoint #> -function Get-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +function Get-AzDnsResolverInboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -947,10 +969,10 @@ param( ${DnsResolverName}, [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('OutboundEndpointName')] + [Alias('InboundEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the outbound endpoint for the DNS resolver. + # The name of the inbound endpoint for the DNS resolver. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] @@ -967,6 +989,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1058,9 +1081,9 @@ begin { } $mapping = @{ - Get = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_Get'; - GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_GetViaIdentity'; - List = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_List'; + Get = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverInboundEndpoint_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -1123,24 +1146,18 @@ end { <# .Synopsis -Gets properties of a DNS resolver. +Gets properties of an outbound endpoint for a DNS resolver. .Description -Gets properties of a DNS resolver. -.Example -Get-AzDnsResolver -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 -.Example -Get-AzDnsResolver -ResourceGroupName powershell-test-rg +Gets properties of an outbound endpoint for a DNS resolver. .Example -Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName sampleResourceGroup .Example -Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virtualnetwork-test +Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -1148,32 +1165,42 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolveroutboundendpoint #> -function Get-AzDnsResolver { -[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')] +function Get-AzDnsResolverOutboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] - [Alias('DnsResolverName')] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the DNS resolver. + ${DnsResolverName}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('OutboundEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the outbound endpoint for the DNS resolver. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] - [Parameter(ParameterSetName='List2', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. @@ -1182,12 +1209,11 @@ param( [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Parameter(ParameterSetName='List2')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] @@ -1197,15 +1223,7 @@ param( # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, - [Parameter(ParameterSetName='List2', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the virtual network. - ${VirtualNetworkName}, - [Parameter(ParameterSetName='List')] - [Parameter(ParameterSetName='List1')] - [Parameter(ParameterSetName='List2')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] [System.Int32] # The maximum number of results to return. @@ -1287,13 +1305,11 @@ begin { } $mapping = @{ - Get = 'Az.DnsResolver.private\Get-AzDnsResolver_Get'; - GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolver_GetViaIdentity'; - List = 'Az.DnsResolver.private\Get-AzDnsResolver_List'; - List1 = 'Az.DnsResolver.private\Get-AzDnsResolver_List1'; - List2 = 'Az.DnsResolver.private\Get-AzDnsResolver_List2'; + Get = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverOutboundEndpoint_List'; } - if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -1354,102 +1370,89 @@ end { <# .Synopsis -Creates or updates a forwarding rule in a DNS forwarding ruleset. +Gets properties of a DNS security rule for a DNS resolver policy. .Description -Creates or updates a forwarding rule in a DNS forwarding ruleset. +Gets properties of a DNS security rule for a DNS resolver policy. .Example -$targetIPConfig = 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 -New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy .Example -$targetIPConfig = 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 -New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnssecurityrulename33nmy1fz +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule .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. - [Port ]: DNS server port. +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule #> -function New-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, - [Parameter(Mandatory)] - [Alias('ForwardingRuleName')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsSecurityRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the forwarding rule. + # The name of the DNS security rule. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # ETag of the resource. - # Omit this value to always overwrite the current resource. - # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. - ${IfMatch}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [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')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState] - # The state of forwarding rule. - ${ForwardingRuleState}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [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(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1526,9 +1529,11 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetForwardingRule_CreateExpanded'; + Get = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyDnsSecurityRule_List'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -1589,77 +1594,3811 @@ end { <# .Synopsis -Creates or updates a virtual network link to a DNS forwarding ruleset. +Gets properties of a DNS resolver policy virtual network link. .Description -Creates or updates a virtual network link to a DNS forwarding ruleset. +Gets properties of a DNS resolver policy virtual network link. .Example -New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy .Example -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"} +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink #> -function New-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Get-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, - [Parameter(Mandatory)] - [Alias('VirtualNetworkLinkName')] + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network link. + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] + [System.String[]] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # ETag of the resource. - # Omit this value to always overwrite the current resource. - # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. - ${IfMatch}, + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyVirtualNetworkLink_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicyVirtualNetworkLink_List'; + } + if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Gets properties of a DNS resolver policy. +.Description +Gets properties of a DNS resolver policy. +.Example +Get-AzDnsResolverPolicy -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +.Example +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg +.Example +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy +#> +function Get-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List2')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network. + ${VirtualNetworkName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicy_Get'; + GetViaIdentity = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_GetViaIdentity'; + List = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List1'; + List2 = 'Az.DnsResolver.private\Get-AzDnsResolverPolicy_List2'; + } + if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Gets properties of a DNS resolver. +.Description +Gets properties of a DNS resolver. +.Example +Get-AzDnsResolver -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +.Example +Get-AzDnsResolver -ResourceGroupName powershell-test-rg +.Example +Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +.Example +Get-AzDnsResolver -ResourceGroupName powershell-test-rg -VirtualNetworkName virtualnetwork-test + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolver +#> +function Get-AzDnsResolver { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver], [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource])] +[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Get', Mandatory)] + [Alias('DnsResolverName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver. + ${Name}, + + [Parameter(ParameterSetName='Get', Mandatory)] + [Parameter(ParameterSetName='List', Mandatory)] + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Get')] + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List2')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String[]] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='List2', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network. + ${VirtualNetworkName}, + + [Parameter(ParameterSetName='List')] + [Parameter(ParameterSetName='List1')] + [Parameter(ParameterSetName='List2')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Query')] + [System.Int32] + # The maximum number of results to return. + # If not specified, returns up to 100 results. + ${Top}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + List = 'Az.DnsResolver.private\Get-AzDnsResolver_List'; + List1 = 'Az.DnsResolver.private\Get-AzDnsResolver_List1'; + List2 = 'Az.DnsResolver.private\Get-AzDnsResolver_List2'; + } + if (('Get', 'List', 'List1', 'List2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates a forwarding rule in a DNS forwarding ruleset. +.Description +Creates or updates a forwarding rule in a DNS forwarding ruleset. +.Example +$targetIPConfig = 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 +New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig +.Example +$targetIPConfig = 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 +New-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -TargetDnsServer $targetIPConfig -Metadata @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. + [Port ]: DNS server port. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetforwardingrule +#> +function New-AzDnsForwardingRulesetForwardingRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(Mandatory)] + [Alias('ForwardingRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the forwarding rule. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [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.Api20230701Preview.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')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState] + # The state of forwarding rule. + ${ForwardingRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata]))] + [System.Collections.Hashtable] + # Metadata attached to the forwarding rule. + ${Metadata}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates a virtual network link to a DNS forwarding ruleset. +.Description +Creates or updates a virtual network link to a DNS forwarding ruleset. +.Example +New-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG -VirtualNetworkId "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c64/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/vnet-hub" +.Example +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.Api20230701Preview.IVirtualNetworkLink +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingrulesetvirtualnetworklink +#> +function New-AzDnsForwardingRulesetVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(Mandatory)] + [Alias('VirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network link. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # 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.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata]))] + [System.Collections.Hashtable] + # Metadata attached to the virtual network link. + ${Metadata}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates a DNS forwarding ruleset. +.Description +Creates or updates a DNS forwarding ruleset. +.Example +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +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";} +.Example +New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 +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.Api20230701Preview.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. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset +#> +function New-AzDnsForwardingRuleset { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsForwardingRulesetName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates a DNS resolver domain list. +.Description +Creates or updates a DNS resolver domain list. +.Example +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") +.Example +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist +#> +function New-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String[]] + # The domains in the domain list. + ${Domain}, + + [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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverDomainList_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates an inbound endpoint for a DNS resolver. +.Description +Creates or updates an inbound endpoint for a DNS resolver. +.Example +$ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31ur3isx/subnets/pssubnetname311tqweg + +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 -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint +#> +function New-AzDnsResolverInboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver. + ${DnsResolverName}, + + [Parameter(Mandatory)] + [Alias('InboundEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the inbound endpoint for the DNS resolver. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates an outbound endpoint for a DNS resolver. +.Description +Creates or updates an outbound endpoint for a DNS resolver. +.Example +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 +.Example +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.Api20230701Preview.IOutboundEndpoint +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint +#> +function New-AzDnsResolverOutboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver. + ${DnsResolverName}, + + [Parameter(Mandatory)] + [Alias('OutboundEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the outbound endpoint for the DNS resolver. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # Resource ID. + ${SubnetId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates a DNS security rule for a DNS resolver policy. +.Description +Creates or updates a DNS security rule for a DNS resolver policy. +.Example +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} + +.Example +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule +.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. + +DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to. + Id : Resource ID. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule +#> +function New-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # The geo-location where the resource lives + ${Location}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.Int32] + # The priority of the DNS security rule. + ${Priority}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode] + # The response code for block actions. + ${ActionBlockResponseCode}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType] + # The type of action to take. + ${ActionType}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState] + # The state of DNS security rule. + ${DnsSecurityRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates a DNS resolver policy virtual network link. +.Description +Creates or updates a DNS resolver policy virtual network link. +.Example +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +.Example +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink +#> +function New-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # 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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates a DNS resolver policy. +.Description +Creates or updates a DNS resolver policy. +.Example +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 +.Example +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy +#> +function New-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. + ${IfNoneMatch}, + + [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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicy_CreateExpanded'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Creates or updates a DNS resolver. +.Description +Creates or updates a DNS resolver. +.Example +New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +.Example +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.Api20230701Preview.IDnsResolver +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver +#> +function New-AzDnsResolver { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DnsResolverName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + # Other values will be ignored. ${IfNoneMatch}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String] + # 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.Api50.ITrackedResourceTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Deletes a forwarding rule in a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +.Description +Deletes a forwarding rule in a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName sampleForwardingRuleset -Name sampleForwardingRule -ResourceGroupName powershell-test-rg +.Example +$inputobject = Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverName -ResourceGroupName sampleRG -Name forwardingRule + +Remove-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetforwardingrule +#> +function Remove-AzDnsForwardingRulesetForwardingRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('ForwardingRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the forwarding rule. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Deletes a virtual network link to a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +.Description +Deletes a virtual network link to a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG +.Example +$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg +Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetvirtualnetworklink +#> +function Remove-AzDnsForwardingRulesetVirtualNetworkLink { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('VirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the virtual network link. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Deletes a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +All forwarding rules within the ruleset will be deleted. +.Description +Deletes a DNS forwarding ruleset. +WARNING: This operation cannot be undone. +All forwarding rules within the ruleset will be deleted. +.Example +Remove-AzDnsForwardingRuleset -Name dnsForwardingRulset -ResourceGroupName sampleRG +.Example +$dnsResolverDnsForwardingRulesetObject = Get-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG +Remove-AzDnsForwardingRuleset -InputObject $dnsResolverDnsForwardingRulesetObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingruleset +#> +function Remove-AzDnsForwardingRuleset { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsForwardingRulesetName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS forwarding ruleset. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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 + } +} +} + +<# +.Synopsis +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +.Example +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist +#> +function Remove-AzDnsResolverDomainList { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # Resource ID. - ${VirtualNetworkId}, + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [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}, + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -1702,6 +5441,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -1748,9 +5493,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverDomainList_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverDomainList_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -1811,53 +5557,84 @@ end { <# .Synopsis -Creates or updates a DNS forwarding ruleset. +Deletes an inbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. .Description -Creates or updates a DNS forwarding ruleset. +Deletes an inbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. .Example -New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -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";} +Remove-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg .Example -New-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutboundEndpoint -ResourceGroupName sampleRG -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67 -SubnetId "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/sampleRG/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc/subnets/test-subnet" -Location westus2 -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"} +$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg + +Remove-AzDnsResolverInboundEndpoint -InputObject $inputObject +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +System.Boolean .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. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsforwardingruleset +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverinboundendpoint #> -function New-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDnsResolverInboundEndpoint { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('DnsForwardingRulesetName')] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. + # The name of the DNS resolver. + ${DnsResolverName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('InboundEndpointName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the inbound endpoint for the DNS resolver. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] [System.String] @@ -1866,34 +5643,6 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [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(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]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -1935,6 +5684,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -1981,9 +5736,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsForwardingRuleset_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2044,61 +5800,83 @@ end { <# .Synopsis -Creates or updates an inbound endpoint for a DNS resolver. +Deletes an outbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. .Description -Creates or updates an inbound endpoint for a DNS resolver. +Deletes an outbound endpoint for a DNS resolver. +WARNING: This operation cannot be undone. .Example -$ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAllocationMethod Dynamic -SubnetId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31ur3isx/subnets/pssubnetname311tqweg - -New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration +Remove-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz .Example -New-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint1 -ResourceGroupName powershell-test-rg -IPConfiguration $ipConfiguration -Tag @{"key0" = "value0"} +$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +Remove-AzDnsResolverOutboundEndpoint -InputObject $inputObject +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +System.Boolean .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. +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverinboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolveroutboundendpoint #> -function New-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDnsResolverOutboundEndpoint { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the DNS resolver. ${DnsResolverName}, - [Parameter(Mandatory)] - [Alias('InboundEndpointName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('OutboundEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the inbound endpoint for the DNS resolver. + # The name of the outbound endpoint for the DNS resolver. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] [System.String] @@ -2107,34 +5885,6 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [AllowEmptyCollection()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [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]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2176,6 +5926,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -2222,9 +5978,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverInboundEndpoint_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2285,50 +6042,83 @@ end { <# .Synopsis -Creates or updates an outbound endpoint for a DNS resolver. +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. .Description -Creates or updates an outbound endpoint for a DNS resolver. +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. .Example -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 +Remove-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz .Example -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"} +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveroutboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule #> -function New-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, - [Parameter(Mandatory)] - [Alias('OutboundEndpointName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsSecurityRuleName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the outbound endpoint for the DNS resolver. + # The name of the DNS security rule. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] [System.String] @@ -2337,32 +6127,6 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # Resource ID. - ${SubnetId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2404,6 +6168,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -2450,9 +6220,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolverOutboundEndpoint_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyDnsSecurityRule_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2513,44 +6284,83 @@ end { <# .Synopsis -Creates or updates a DNS resolver. +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. .Description -Creates or updates a DNS resolver. +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. .Example -New-AzDnsResolver -Name sampleResolver -ResourceGroupName powershell-test-rg -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +Remove-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz .Example -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"} +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolver +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink #> -function New-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Remove-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] - [Alias('DnsResolverName')] + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] [System.String] @@ -2559,32 +6369,6 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] - [System.String] - # Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. - # Other values will be ignored. - ${IfNoneMatch}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [System.String] - # 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]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, - [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -2626,6 +6410,12 @@ param( # Run the command asynchronously ${NoWait}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -2672,9 +6462,10 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.DnsResolver.private\New-AzDnsResolver_CreateExpanded'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -2735,17 +6526,16 @@ end { <# .Synopsis -Deletes a forwarding rule in a DNS forwarding ruleset. +Deletes a DNS resolver policy. WARNING: This operation cannot be undone. .Description -Deletes a forwarding rule in a DNS forwarding ruleset. +Deletes a DNS resolver policy. WARNING: This operation cannot be undone. .Example -Remove-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName sampleForwardingRuleset -Name sampleForwardingRule -ResourceGroupName powershell-test-rg +Remove-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz .Example -$inputobject = Get-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName DnsResolverName -ResourceGroupName sampleRG -Name forwardingRule - -Remove-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity @@ -2758,33 +6548,31 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetforwardingrule +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy #> -function Remove-AzDnsForwardingRulesetForwardingRule { +function Remove-AzDnsResolverPolicy { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('ForwardingRuleName')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the forwarding rule. + # The name of the DNS resolver policy. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -2799,6 +6587,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -2825,6 +6614,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2845,6 +6640,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -2897,8 +6698,8 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetForwardingRule_DeleteViaIdentity'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicy_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicy_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -2961,16 +6762,16 @@ end { <# .Synopsis -Deletes a virtual network link to a DNS forwarding ruleset. +Deletes a DNS resolver. WARNING: This operation cannot be undone. .Description -Deletes a virtual network link to a DNS forwarding ruleset. +Deletes a DNS resolver. WARNING: This operation cannot be undone. .Example -Remove-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleVnetLink -ResourceGroupName sampleRG +Remove-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz .Example -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg -Remove-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject +$dnsResolverObject = Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolver -InputObject $dnsResolverObject .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity @@ -2983,33 +6784,31 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingrulesetvirtualnetworklink +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolver #> -function Remove-AzDnsForwardingRulesetVirtualNetworkLink { +function Remove-AzDnsResolver { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('VirtualNetworkLinkName')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the virtual network link. + # The name of the DNS resolver. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] @@ -3024,6 +6823,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] @@ -3134,8 +6934,8 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity'; + Delete = 'Az.DnsResolver.private\Remove-AzDnsResolver_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolver_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -3198,23 +6998,19 @@ end { <# .Synopsis -Deletes a DNS forwarding ruleset. -WARNING: This operation cannot be undone. -All forwarding rules within the ruleset will be deleted. +Updates a forwarding rule in a DNS forwarding ruleset. .Description -Deletes a DNS forwarding ruleset. -WARNING: This operation cannot be undone. -All forwarding rules within the ruleset will be deleted. +Updates a forwarding rule in a DNS forwarding ruleset. .Example -Remove-AzDnsForwardingRuleset -Name dnsForwardingRulset -ResourceGroupName sampleRG +Update-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -Metadata @{"key0" = "value0"} .Example -$dnsResolverDnsForwardingRulesetObject = Get-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Remove-AzDnsForwardingRuleset -InputObject $dnsResolverDnsForwardingRulesetObject +$inputObject = Get-AzDnsForwardingRulesetForwardingRule -ResourceGroupName powershell-test-rg -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule +Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -3222,44 +7018,59 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. + +TARGETDNSSERVER : DNS servers to forward the DNS query to. + IPAddress : DNS server IP address. + [Port ]: DNS server port. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsforwardingruleset +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule #> -function Remove-AzDnsForwardingRuleset { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDnsForwardingRulesetForwardingRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('DnsForwardingRulesetName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('ForwardingRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the forwarding rule. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] # Identity Parameter @@ -3274,6 +7085,28 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState] + # The state of forwarding rule. + ${ForwardingRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata]))] + [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.Api20230701Preview.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()] @@ -3283,12 +7116,6 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -3309,18 +7136,6 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -3367,10 +7182,10 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsForwardingRuleset_DeleteViaIdentity'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -3431,22 +7246,19 @@ end { <# .Synopsis -Deletes an inbound endpoint for a DNS resolver. -WARNING: This operation cannot be undone. +Updates a virtual network link to a DNS forwarding ruleset. .Description -Deletes an inbound endpoint for a DNS resolver. -WARNING: This operation cannot be undone. +Updates a virtual network link to a DNS forwarding ruleset. .Example -Remove-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg +Update-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName sampleDnsForwardingRuleset -Name sampleVnetLink -Metadata @{"value0" = "value1"} .Example -$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg - -Remove-AzDnsResolverInboundEndpoint -InputObject $inputObject +$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 -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -3454,50 +7266,55 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverinboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink #> -function Remove-AzDnsResolverInboundEndpoint { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDnsForwardingRulesetVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, + # The name of the DNS forwarding ruleset. + ${DnsForwardingRulesetName}, - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('InboundEndpointName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('VirtualNetworkLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the inbound endpoint for the DNS resolver. + # The name of the virtual network link. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] # Identity Parameter @@ -3512,6 +7329,13 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [System.Collections.Hashtable] + # Metadata attached to the virtual network link. + ${Metadata}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3553,12 +7377,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -3605,10 +7423,10 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverInboundEndpoint_DeleteViaIdentity'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -3669,72 +7487,72 @@ end { <# .Synopsis -Deletes an outbound endpoint for a DNS resolver. -WARNING: This operation cannot be undone. +Updates a DNS forwarding ruleset. .Description -Deletes an outbound endpoint for a DNS resolver. -WARNING: This operation cannot be undone. +Updates a DNS forwarding ruleset. .Example -Remove-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Tag @{"key0" = "value0"} .Example -$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Remove-AzDnsResolverOutboundEndpoint -InputObject $inputObject +$inputObject = Get-AzDnsForwardingRuleset -ResourceGroupName powershell-test-rg -Name dnsForwardingRuleset +Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolveroutboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset #> -function Remove-AzDnsResolverOutboundEndpoint { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDnsForwardingRuleset { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, - - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('OutboundEndpointName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsForwardingRulesetName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the outbound endpoint for the DNS resolver. + # The name of the DNS forwarding ruleset. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] # Identity Parameter @@ -3749,6 +7567,21 @@ 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.Api20230701Preview.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.Api20230701Preview.IDnsForwardingRulesetPatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS Resolver. + ${Tag}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -3790,12 +7623,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -3842,10 +7669,10 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverOutboundEndpoint_DeleteViaIdentity'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -3906,21 +7733,19 @@ end { <# .Synopsis -Deletes a DNS resolver. -WARNING: This operation cannot be undone. +Updates a DNS resolver domain list. .Description -Deletes a DNS resolver. -WARNING: This operation cannot be undone. +Updates a DNS resolver domain list. .Example -Remove-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Update-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz -Tag @{"key0" = "value0"} .Example -$dnsResolverObject = Get-AzDnsResolver -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz -Remove-AzDnsResolver -InputObject $dnsResolverObject +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -System.Boolean +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList .Notes COMPLEX PARAMETER PROPERTIES @@ -3928,44 +7753,49 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolver +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist #> -function Remove-AzDnsResolver { -[OutputType([System.Boolean])] -[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='Delete', Mandatory)] - [Alias('DnsResolverName')] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverDomainListName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. + # The name of the DNS resolver domain list. ${Name}, - [Parameter(ParameterSetName='Delete', Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='Delete')] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, - [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] # Identity Parameter @@ -3980,6 +7810,20 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String[]] + # The domains in the domain list. + ${Domain}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS resolver domain list. + ${Tag}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -4021,12 +7865,6 @@ param( # Run the command asynchronously ${NoWait}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Returns true when the command succeeds - ${PassThru}, - [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -4073,10 +7911,10 @@ begin { } $mapping = @{ - Delete = 'Az.DnsResolver.private\Remove-AzDnsResolver_Delete'; - DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolver_DeleteViaIdentity'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverDomainList_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverDomainList_UpdateViaIdentityExpanded'; } - if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { @@ -4137,19 +7975,19 @@ end { <# .Synopsis -Updates a forwarding rule in a DNS forwarding ruleset. +Updates an inbound endpoint for a DNS resolver. .Description -Updates a forwarding rule in a DNS forwarding ruleset. +Updates an inbound endpoint for a DNS resolver. .Example -Update-AzDnsForwardingRulesetForwardingRule -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -ResourceGroupName sampleRG -Metadata @{"key0" = "value0"} +Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Tag @{"value0" = "value1"} .Example -$inputObject = Get-AzDnsForwardingRulesetForwardingRule -ResourceGroupName powershell-test-rg -DnsForwardingRulesetName dnsForwardingRuleset -Name sampleForwardingRule -Update-AzDnsForwardingRulesetForwardingRule -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.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -4157,37 +7995,37 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. - -TARGETDNSSERVER : DNS servers to forward the DNS query to. - IPAddress : DNS server IP address. - [Port ]: DNS server port. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint #> -function Update-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +function Update-AzDnsResolverInboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, + # The name of the DNS resolver. + ${DnsResolverName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('ForwardingRuleName')] + [Alias('InboundEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the forwarding rule. + # The name of the inbound endpoint for the DNS resolver. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4202,6 +8040,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4219,27 +8058,12 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState])] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState] - # The state of forwarding rule. - ${ForwardingRuleState}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags]))] [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.Api20220701.ITargetDnsServer[]] - # DNS servers to forward the DNS query to. - # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. - ${TargetDnsServer}, + # Tags for inbound endpoint. + ${Tag}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4250,6 +8074,12 @@ param( # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -4270,6 +8100,12 @@ param( # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] [System.Uri] @@ -4316,8 +8152,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4380,19 +8216,19 @@ end { <# .Synopsis -Updates a virtual network link to a DNS forwarding ruleset. +Updates an outbound endpoint for a DNS resolver. .Description -Updates a virtual network link to a DNS forwarding ruleset. +Updates an outbound endpoint for a DNS resolver. .Example -Update-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName sampleDnsForwardingRuleset -Name sampleVnetLink -Metadata @{"value0" = "value1"} +Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Tag @{"value0" = "value1"} .Example -$inputObject = Get-AzDnsForwardingRulesetVirtualNetworkLink -DnsForwardingRulesetName pstestdnsresolvername -Name samplevnetLink1 -ResourceGroupName powershell-test-rg -Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metadata @{"value0" = "value1"} +$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup +Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = "value1"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -4400,33 +8236,37 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint #> -function Update-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +function Update-AzDnsResolverOutboundEndpoint { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. - ${DnsForwardingRulesetName}, + # The name of the DNS resolver. + ${DnsResolverName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('VirtualNetworkLinkName')] + [Alias('OutboundEndpointName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the virtual network link. + # The name of the outbound endpoint for the DNS resolver. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4441,6 +8281,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4460,10 +8301,10 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags]))] [System.Collections.Hashtable] - # Metadata attached to the virtual network link. - ${Metadata}, + # Tags for outbound endpoint. + ${Tag}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] @@ -4552,8 +8393,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4616,50 +8457,60 @@ end { <# .Synopsis -Updates a DNS forwarding ruleset. +Updates a DNS security rule. .Description -Updates a DNS forwarding ruleset. +Updates a DNS security rule. .Example -Update-AzDnsForwardingRuleset -Name dnsForwardingRuleset -ResourceGroupName sampleRG -Tag @{"key0" = "value0"} +Update-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz -Tag @{"key0" = "value0"} .Example -$inputObject = Get-AzDnsForwardingRuleset -ResourceGroupName powershell-test-rg -Name dnsForwardingRuleset -Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0"} +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule .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. +DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to. Id : Resource ID. INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule #> -function Update-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] +function Update-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('DnsForwardingRulesetName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS forwarding ruleset. + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4674,6 +8525,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4691,19 +8543,46 @@ param( # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. ${IfMatch}, + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode] + # The response code for block actions. + ${ActionBlockResponseCode}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType] + # The type of action to take. + ${ActionType}, + [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}, + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState] + # The state of DNS security rule. + ${DnsSecurityRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.Int32] + # The priority of the DNS security rule. + ${Priority}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags]))] [System.Collections.Hashtable] - # Tags for DNS Resolver. + # Tags for DNS security rule. ${Tag}, [Parameter()] @@ -4793,8 +8672,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsForwardingRuleset_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -4857,19 +8736,19 @@ end { <# .Synopsis -Updates an inbound endpoint for a DNS resolver. +Updates a DNS resolver policy virtual network link. .Description -Updates an inbound endpoint for a DNS resolver. +Updates a DNS resolver policy virtual network link. .Example -Update-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Tag @{"value0" = "value1"} +Update-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz -Tag @{"key0" = "value0"} .Example -$inputobject = Get-AzDnsResolverInboundEndpoint -DnsResolverName pstestdnsresolvername -Name sampleInboundEndpoint -ResourceGroupName powershell-test-rg -Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = "value1"} +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -4877,33 +8756,37 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink #> -function Update-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] +function Update-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('InboundEndpointName')] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the inbound endpoint for the DNS resolver. + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4918,6 +8801,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -4937,9 +8821,9 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags]))] [System.Collections.Hashtable] - # Tags for inbound endpoint. + # Tags for the DNS resolver policy virtual network link. ${Tag}, [Parameter()] @@ -5029,8 +8913,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -5093,19 +8977,19 @@ end { <# .Synopsis -Updates an outbound endpoint for a DNS resolver. +Updates a DNS resolver policy. .Description -Updates an outbound endpoint for a DNS resolver. +Updates a DNS resolver policy. .Example -Update-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Tag @{"value0" = "value1"} +Update-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz -Tag @{"key0" = "value0"} .Example -$inputObject = Get-AzDnsResolverOutboundEndpoint -DnsResolverName sampleResolver -Name sampleOutbound -ResourceGroupName sampleResourceGroup -Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = "value1"} +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy .Notes COMPLEX PARAMETER PROPERTIES @@ -5113,33 +8997,31 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link -https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy #> -function Update-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +function Update-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverPolicyName')] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] [System.String] - # The name of the DNS resolver. - ${DnsResolverName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('OutboundEndpointName')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] - [System.String] - # The name of the outbound endpoint for the DNS resolver. + # The name of the DNS resolver policy. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -5154,6 +9036,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -5173,9 +9056,9 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags]))] [System.Collections.Hashtable] - # Tags for outbound endpoint. + # Tags for DNS resolver policy. ${Tag}, [Parameter()] @@ -5265,8 +9148,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicy_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicy_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $testPlayback = $false @@ -5341,7 +9224,7 @@ Update-AzDnsResolver -InputObject $dnsResolverObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver .Notes COMPLEX PARAMETER PROPERTIES @@ -5349,20 +9232,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver #> function Update-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -5384,6 +9271,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -5403,7 +9291,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, @@ -5566,12 +9454,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.Api20220701.IPConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolveripconfigurationobject #> function New-AzDnsResolverIPConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] @@ -5680,12 +9568,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.Api20220701.TargetDnsServer +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolvertargetdnsserverobject #> function New-AzDnsResolverTargetDnsServerObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter()] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 index 3bfce6f3e85b..04f4e6f0f9e8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRuleset.ps1 @@ -40,13 +40,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -75,6 +79,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 index 9fa397cacdd5..c3ce8e17aaf4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetForwardingRule.ps1 @@ -39,13 +39,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -80,6 +84,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index ee66786b14ed..81d32fbba8d4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -38,13 +38,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -79,6 +83,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 index 289287c55f94..4168dfdb9dc2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolver.ps1 @@ -38,13 +38,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -73,6 +77,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 new file mode 100644 index 000000000000..5d4bc7327f8a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverDomainList.ps1 @@ -0,0 +1,251 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +.Example +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist +#> +function Remove-AzDnsResolverDomainList { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverDomainList_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverDomainList_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 index 807da85fa2f7..a45e5d5c1460 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverInboundEndpoint.ps1 @@ -39,13 +39,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -80,6 +84,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 index ef15918cee79..ea159bafdf66 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverOutboundEndpoint.ps1 @@ -38,13 +38,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link @@ -79,6 +83,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 new file mode 100644 index 000000000000..88066e0025cb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicy.ps1 @@ -0,0 +1,251 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +.Example +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy +#> +function Remove-AzDnsResolverPolicy { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicy_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicy_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 new file mode 100644 index 000000000000..0f1b5556e292 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -0,0 +1,257 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +.Example +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule +#> +function Remove-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyDnsSecurityRule_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 new file mode 100644 index 000000000000..2c47f2eaa371 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Remove-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -0,0 +1,257 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. +.Description +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. +.Example +Remove-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +.Example +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +System.Boolean +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink +#> +function Remove-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyVirtualNetworkLink_Delete'; + DeleteViaIdentity = 'Az.DnsResolver.private\Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 index f31392079fde..c523fb7b5d16 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRuleset.ps1 @@ -28,7 +28,7 @@ Update-AzDnsForwardingRuleset -InputObject $inputObject -Tag @{"key0" = "value0" .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset .Notes COMPLEX PARAMETER PROPERTIES @@ -39,20 +39,24 @@ DNSRESOLVEROUTBOUNDENDPOINT : The reference to the DNS resolver INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingruleset #> function Update-AzDnsForwardingRuleset { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -74,6 +78,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -94,14 +99,14 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 index 9a565c97de4a..5953817be3a8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetForwardingRule.ps1 @@ -28,7 +28,7 @@ Update-AzDnsForwardingRulesetForwardingRule -InputObject $inputObject -Metadata .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule .Notes COMPLEX PARAMETER PROPERTIES @@ -36,13 +36,17 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. @@ -53,7 +57,7 @@ TARGETDNSSERVER : DNS servers to forward the DNS query to. https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetforwardingrule #> function Update-AzDnsForwardingRulesetForwardingRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -81,6 +85,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -107,7 +112,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the forwarding rule. ${Metadata}, @@ -115,7 +120,7 @@ param( [Parameter()] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[]] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]] # DNS servers to forward the DNS query to. # To construct, see NOTES section for TARGETDNSSERVER properties and create a hash table. ${TargetDnsServer}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 index b55ef9c47594..ed7d1b39db5d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsForwardingRulesetVirtualNetworkLink.ps1 @@ -28,7 +28,7 @@ Update-AzDnsForwardingRulesetVirtualNetworkLink -InputObject $inputObject -Metad .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink .Notes COMPLEX PARAMETER PROPERTIES @@ -36,20 +36,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsforwardingrulesetvirtualnetworklink #> function Update-AzDnsForwardingRulesetVirtualNetworkLink { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -77,6 +81,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -96,7 +101,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata]))] [System.Collections.Hashtable] # Metadata attached to the virtual network link. ${Metadata}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 index cb0958581a5d..7e4dcd753c7a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolver.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolver -InputObject $dnsResolverObject -Tag @{} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver .Notes COMPLEX PARAMETER PROPERTIES @@ -36,20 +36,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolver #> function Update-AzDnsResolver { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -71,6 +75,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -90,7 +95,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags]))] [System.Collections.Hashtable] # Tags for DNS Resolver. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 new file mode 100644 index 000000000000..9559e72dc916 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverDomainList.ps1 @@ -0,0 +1,257 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a DNS resolver domain list. +.Description +Updates a DNS resolver domain list. +.Example +Update-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz -Tag @{"key0" = "value0"} +.Example +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @{} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist +#> +function Update-AzDnsResolverDomainList { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverDomainListName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver domain list. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.String[]] + # The domains in the domain list. + ${Domain}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS resolver domain list. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverDomainList_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverDomainList_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 index b43c6ee7be0f..d3f90a01ad63 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverInboundEndpoint.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolverInboundEndpoint -InputObject $inputobject -Tag @{"value0" = .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -36,20 +36,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverinboundendpoint #> function Update-AzDnsResolverInboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -77,6 +81,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -96,7 +101,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for inbound endpoint. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 index 2ecc78ac494d..f1ca2ecb2c00 100644 --- a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverOutboundEndpoint.ps1 @@ -28,7 +28,7 @@ Update-AzDnsResolverOutboundEndpoint -InputObject $inputObject -Tag @{"value0" = .Inputs Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint .Notes COMPLEX PARAMETER PROPERTIES @@ -36,20 +36,24 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. [ForwardingRuleName ]: The name of the forwarding rule. [Id ]: Resource identity path [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. [ResourceGroupName ]: The name of the resource group. The name is case insensitive. - [SubscriptionId ]: The ID of the target subscription. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. [VirtualNetworkLinkName ]: The name of the virtual network link. [VirtualNetworkName ]: The name of the virtual network. .Link https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolveroutboundendpoint #> function Update-AzDnsResolverOutboundEndpoint { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -77,6 +81,7 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # The ID of the target subscription. + # The value must be an UUID. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] @@ -96,7 +101,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags]))] [System.Collections.Hashtable] # Tags for outbound endpoint. ${Tag}, diff --git a/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 new file mode 100644 index 000000000000..25e10f68dc76 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicy.ps1 @@ -0,0 +1,250 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a DNS resolver policy. +.Description +Updates a DNS resolver policy. +.Example +Update-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz -Tag @{"key0" = "value0"} +.Example +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy +#> +function Update-AzDnsResolverPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverPolicyName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS resolver policy. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicy_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicy_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 new file mode 100644 index 000000000000..f4b364a495dc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyDnsSecurityRule.ps1 @@ -0,0 +1,294 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a DNS security rule. +.Description +Updates a DNS security rule. +.Example +Update-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz -Tag @{"key0" = "value0"} +.Example +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject -Tag @{} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule +.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. + +DNSRESOLVERDOMAINLIST : DNS resolver policy domains lists that the DNS security rule applies to. + Id : Resource ID. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule +#> +function Update-AzDnsResolverPolicyDnsSecurityRule { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsSecurityRuleName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS security rule. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode] + # The response code for block actions. + ${ActionBlockResponseCode}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType] + # The type of action to take. + ${ActionType}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]] + # DNS resolver policy domains lists that the DNS security rule applies to. + # To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + ${DnsResolverDomainList}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState])] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState] + # The state of DNS security rule. + ${DnsSecurityRuleState}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [System.Int32] + # The priority of the DNS security rule. + ${Priority}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags]))] + [System.Collections.Hashtable] + # Tags for DNS security rule. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 new file mode 100644 index 000000000000..7af0774803fb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/exports/Update-AzDnsResolverPolicyVirtualNetworkLink.ps1 @@ -0,0 +1,256 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates a DNS resolver policy virtual network link. +.Description +Updates a DNS resolver policy virtual network link. +.Example +Update-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz -Tag @{"key0" = "value0"} +.Example +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject -Tag @{} + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink +.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. + +INPUTOBJECT : Identity Parameter + [DnsForwardingRulesetName ]: The name of the DNS forwarding ruleset. + [DnsResolverDomainListName ]: The name of the DNS resolver domain list. + [DnsResolverName ]: The name of the DNS resolver. + [DnsResolverPolicyName ]: The name of the DNS resolver policy. + [DnsResolverPolicyVirtualNetworkLinkName ]: The name of the DNS resolver policy virtual network link for the DNS resolver policy. + [DnsSecurityRuleName ]: The name of the DNS security rule. + [ForwardingRuleName ]: The name of the forwarding rule. + [Id ]: Resource identity path + [InboundEndpointName ]: The name of the inbound endpoint for the DNS resolver. + [OutboundEndpointName ]: The name of the outbound endpoint for the DNS resolver. + [ResourceGroupName ]: The name of the resource group. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. The value must be an UUID. + [VirtualNetworkLinkName ]: The name of the virtual network link. + [VirtualNetworkName ]: The name of the virtual network. +.Link +https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink +#> +function Update-AzDnsResolverPolicyVirtualNetworkLink { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy. + ${DnsResolverPolicyName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Alias('DnsResolverPolicyVirtualNetworkLinkName')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the DNS resolver policy virtual network link for the DNS resolver policy. + ${Name}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + # The value must be an UUID. + ${SubscriptionId}, + + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Header')] + [System.String] + # ETag of the resource. + # Omit this value to always overwrite the current resource. + # Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + ${IfMatch}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags]))] + [System.Collections.Hashtable] + # Tags for the DNS resolver policy virtual network link. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.DnsResolver.private\Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded'; + } + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +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/DnsResolver.Autorest/generate-portal-ux.ps1 b/src/DnsResolver/DnsResolver.Autorest/generate-portal-ux.ps1 index 25c9633279ba..c2de4e54372a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generate-portal-ux.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/generate-portal-ux.ps1 @@ -248,7 +248,16 @@ function New-MetadataForParameterSet() $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo + if ($Null -eq $example) + { + $example = @() + } + [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo + if ($Null -eq $signature) + { + $signature = @() + } return @{ Path = $httpPath diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs index 541e075eace3..225c5d6ba328 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/DnsResolver.cs @@ -15,7 +15,7 @@ public partial class DnsResolver { /// Creates or updates a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -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.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) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // 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.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) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // 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 ) { @@ -275,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -300,7 +300,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -312,12 +312,12 @@ 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.Api20220701.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.Api20230701Preview.IDnsForwardingRuleset body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -333,7 +333,7 @@ public partial class DnsResolver /// Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will /// be deleted. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -347,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -400,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -460,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 ) { @@ -590,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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -609,7 +609,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -623,7 +623,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -633,7 +633,7 @@ public partial class DnsResolver } /// Gets a DNS forwarding ruleset properties. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// a delegate that is called when the remote service returns 200 (OK). @@ -644,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -685,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -738,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 ) { @@ -756,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -781,7 +781,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// an instance that will receive events. @@ -793,7 +793,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -802,7 +802,7 @@ public partial class DnsResolver } /// Lists DNS forwarding rulesets in all resource groups of a subscription. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -812,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -843,7 +843,7 @@ public partial class DnsResolver } /// Lists DNS forwarding rulesets within a resource group. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). @@ -854,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -897,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -952,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 ) { @@ -970,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -995,7 +995,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, /// but you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. @@ -1007,7 +1007,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -1015,7 +1015,7 @@ public partial class DnsResolver } /// Lists DNS forwarding ruleset resource IDs attached to a virtual network. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the virtual network. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -1027,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1072,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1130,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 ) { @@ -1148,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1173,7 +1173,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, /// but you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the virtual network. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -1186,7 +1186,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -1205,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1255,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 ) { @@ -1273,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1298,7 +1298,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. /// @@ -1309,12 +1309,12 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } /// Updates a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -1328,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.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) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1382,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.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) + public async global::System.Threading.Tasks.Task DnsForwardingRulesetsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1445,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 ) { @@ -1562,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1587,7 +1587,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen @@ -1597,12 +1597,12 @@ 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.Api20220701.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.Api20230701Preview.IDnsForwardingRulesetPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -1613,10 +1613,10 @@ public partial class DnsResolver } } - /// Creates or updates a DNS resolver. - /// The ID of the target subscription. + /// Creates or updates a DNS resolver domain list. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. @@ -1630,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.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) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1642,8 +1642,8 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers/" - + global::System.Uri.EscapeDataString(dnsResolverName) + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + global::System.Uri.EscapeDataString(dnsResolverDomainListName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1671,11 +1671,11 @@ public partial class DnsResolver request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or updates a DNS resolver. + /// Creates or updates a DNS resolver domain list. /// /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. @@ -1690,32 +1690,32 @@ 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.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) + public async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var dnsResolverName = _match.Groups["dnsResolverName"].Value; + var dnsResolverDomainListName = _match.Groups["dnsResolverDomainListName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers/" - + dnsResolverName + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + dnsResolverDomainListName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1743,11 +1743,13 @@ public partial class DnsResolver request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -1757,7 +1759,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 DnsResolverDomainListsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1874,13 +1876,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.Api20220701.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.Api20230701Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1896,12 +1898,12 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. @@ -1911,16 +1913,19 @@ 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.Api20220701.IDnsResolver body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(dnsResolverDomainListName),dnsResolverDomainListName); + await eventListener.AssertMinimumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,80); + await eventListener.AssertRegEx(nameof(dnsResolverDomainListName),dnsResolverDomainListName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); await eventListener.AssertNotNull(nameof(body), body); @@ -1928,13 +1933,12 @@ public partial class DnsResolver } } - /// Deletes a DNS resolver. WARNING: This operation cannot be undone. - /// The ID of the target subscription. + /// Deletes a DNS resolver domain list. WARNING: This operation cannot be undone. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1943,9 +1947,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 DnsResolverDomainListsDelete(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1955,8 +1959,8 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers/" - + global::System.Uri.EscapeDataString(dnsResolverName) + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + global::System.Uri.EscapeDataString(dnsResolverDomainListName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -1976,15 +1980,14 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.DnsResolverDomainListsDelete_Call(request,onNoContent,onDefault,eventListener,sender); } } - /// Deletes a DNS resolver. WARNING: This operation cannot be undone. + /// Deletes a DNS resolver domain list. WARNING: This operation cannot be undone. /// /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -1993,32 +1996,32 @@ 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 DnsResolverDomainListsDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var dnsResolverName = _match.Groups["dnsResolverName"].Value; + var dnsResolverDomainListName = _match.Groups["dnsResolverDomainListName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers/" - + dnsResolverName + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + dnsResolverDomainListName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2038,13 +2041,12 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.DnsResolverDomainListsDelete_Call(request,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2053,7 +2055,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 DnsResolverDomainListsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2168,12 +2170,6 @@ public partial class DnsResolver switch ( _response.StatusCode ) { - 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); - break; - } case global::System.Net.HttpStatusCode.NoContent: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -2183,7 +2179,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.Api20220701.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.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2199,36 +2195,39 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(dnsResolverDomainListName),dnsResolverDomainListName); + await eventListener.AssertMinimumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,80); + await eventListener.AssertRegEx(nameof(dnsResolverDomainListName),dnsResolverDomainListName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); } } - /// Gets properties of a DNS resolver. - /// The ID of the target subscription. + /// Gets properties of a DNS resolver domain list. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2237,9 +2236,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 DnsResolverDomainListsGet(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2249,8 +2248,8 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers/" - + global::System.Uri.EscapeDataString(dnsResolverName) + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + global::System.Uri.EscapeDataString(dnsResolverDomainListName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2264,11 +2263,11 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversGet_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets properties of a DNS resolver. + /// Gets properties of a DNS resolver domain list. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2278,32 +2277,32 @@ 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 DnsResolverDomainListsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var dnsResolverName = _match.Groups["dnsResolverName"].Value; + var dnsResolverDomainListName = _match.Groups["dnsResolverDomainListName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers/" - + dnsResolverName + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + dnsResolverDomainListName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2317,11 +2316,11 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversGet_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2331,7 +2330,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 DnsResolverDomainListsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2349,13 +2348,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.Api20220701.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.Api20230701Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2371,31 +2370,34 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver domain list. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(dnsResolverDomainListName),dnsResolverDomainListName); + await eventListener.AssertMinimumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,80); + await eventListener.AssertRegEx(nameof(dnsResolverDomainListName),dnsResolverDomainListName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); } } - /// Lists DNS resolvers in all resource groups of a subscription. - /// The ID of the target subscription. + /// Lists DNS resolver domain lists in all resource groups of a subscription. + /// The ID of the target subscription. The value must be an UUID. /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2405,9 +2407,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 DnsResolverDomainListsList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2415,7 +2417,7 @@ public partial class DnsResolver var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Network/dnsResolvers" + + "/providers/Microsoft.Network/dnsResolverDomainLists" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" @@ -2431,12 +2433,12 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversList_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists DNS resolvers within a resource group. - /// The ID of the target subscription. + /// Lists DNS resolver domain lists within a resource group. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). @@ -2447,9 +2449,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 DnsResolverDomainListsListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2459,7 +2461,7 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers" + + "/providers/Microsoft.Network/dnsResolverDomainLists" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" @@ -2475,11 +2477,11 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists DNS resolvers within a resource group. + /// Lists DNS resolver domain lists within a resource group. /// /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). @@ -2490,18 +2492,18 @@ 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 DnsResolverDomainListsListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists'"); } // replace URI parameters with values from identity @@ -2513,7 +2515,7 @@ public partial class DnsResolver + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers" + + "/providers/Microsoft.Network/dnsResolverDomainLists" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" @@ -2529,11 +2531,13 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2543,7 +2547,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 DnsResolverDomainListsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2561,13 +2565,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.Api20220701.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.Api20230701Preview.DnsResolverDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2583,76 +2587,29 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); } } - /// Lists DNS resolver resource IDs linked to a virtual network. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. - /// The maximum number of results to return. If not specified, returns up to 100 results. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. - /// - /// 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) - { - var apiVersion = @"2022-07-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/virtualNetworks/" - + global::System.Uri.EscapeDataString(virtualNetworkName) - + "/listDnsResolvers" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.DnsResolversListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Lists DNS resolver resource IDs linked to a virtual network. + /// Lists DNS resolver domain lists in all resource groups of a subscription. /// /// The maximum number of results to return. If not specified, returns up to 100 results. /// a delegate that is called when the remote service returns 200 (OK). @@ -2663,33 +2620,27 @@ 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 DnsResolverDomainListsListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/virtualNetworks/(?[^/]+)/listDnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var virtualNetworkName = _match.Groups["virtualNetworkName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Network/virtualNetworks/" - + virtualNetworkName - + "/listDnsResolvers" + + "/providers/Microsoft.Network/dnsResolverDomainLists" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "&" @@ -2700,16 +2651,16 @@ public partial class DnsResolver // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2719,7 +2670,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 DnsResolverDomainListsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2737,13 +2688,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.Api20220701.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.Api20230701Preview.DnsResolverDomainListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2759,33 +2710,85 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the virtual network. + /// The ID of the target subscription. The value must be an UUID. /// The maximum number of results to return. If not specified, returns up to 100 results. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork_Validate(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsList_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(virtualNetworkName),virtualNetworkName); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); } } - /// Lists DNS resolvers in all resource groups of a subscription. + /// Updates a DNS resolver domain list. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver domain list. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + global::System.Uri.EscapeDataString(dnsResolverDomainListName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverDomainListsUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a DNS resolver domain list. /// - /// The maximum number of results to return. If not specified, returns up to 100 results. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -2794,47 +2797,60 @@ 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 DnsResolverDomainListsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/dnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverDomainLists/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverDomainListName = _match.Groups["dnsResolverDomainListName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.Network/dnsResolvers" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverDomainLists/" + + dnsResolverDomainListName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - + "&" - + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversList_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsResolverDomainListsUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -2844,7 +2860,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 DnsResolverDomainListsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2855,21 +2871,5451 @@ public partial class DnsResolver await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { - 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.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.Api20220701.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverDomainList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver domain list. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverDomainListsUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverDomainListName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverDomainListName),dnsResolverDomainListName); + await eventListener.AssertMinimumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverDomainListName),dnsResolverDomainListName,80); + await eventListener.AssertRegEx(nameof(dnsResolverDomainListName),dnsResolverDomainListName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a DNS resolver policy. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a DNS resolver policy. WARNING: This operation cannot be undone. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + } + } + + /// Gets properties of a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets properties of a DNS resolver policy. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + } + } + + /// Lists DNS resolver policies in all resource groups of a subscription. + /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesList(string subscriptionId, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/dnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver policies within a resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup(string subscriptionId, string resourceGroupName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver policies within a resource group. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroupViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + } + } + + /// Lists DNS resolver policy resource IDs linked to a virtual network. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual network. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork(string subscriptionId, string resourceGroupName, string virtualNetworkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/virtualNetworks/" + + global::System.Uri.EscapeDataString(virtualNetworkName) + + "/listDnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver policy resource IDs linked to a virtual network. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetworkViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/virtualNetworks/(?[^/]+)/listDnsResolverPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var virtualNetworkName = _match.Groups["virtualNetworkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/virtualNetworks/" + + virtualNetworkName + + "/listDnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.SubResourceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual network. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesListByVirtualNetwork_Validate(string subscriptionId, string resourceGroupName, string virtualNetworkName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(virtualNetworkName),virtualNetworkName); + await eventListener.AssertMinimumLength(nameof(virtualNetworkName),virtualNetworkName,1); + + await eventListener.AssertRegEx(nameof(virtualNetworkName),virtualNetworkName,@"^.+$"); + } + } + + /// Lists DNS resolver policies in all resource groups of a subscription. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/dnsResolverPolicies" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesList_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + } + } + + /// Updates a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a DNS resolver policy. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPoliciesUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPoliciesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a DNS resolver policy virtual network link. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyVirtualNetworkLinkName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a DNS resolver policy virtual network link. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsResolverPolicyVirtualNetworkLinkName = _match.Groups["dnsResolverPolicyVirtualNetworkLinkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks/" + + dnsResolverPolicyVirtualNetworkLinkName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual + /// call, but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyVirtualNetworkLinkName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// + /// Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone. + /// + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsResolverPolicyVirtualNetworkLinkName = _match.Groups["dnsResolverPolicyVirtualNetworkLinkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks/" + + dnsResolverPolicyVirtualNetworkLinkName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + } + } + + /// Gets properties of a DNS resolver policy virtual network link. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyVirtualNetworkLinkName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets properties of a DNS resolver policy virtual network link. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsResolverPolicyVirtualNetworkLinkName = _match.Groups["dnsResolverPolicyVirtualNetworkLinkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks/" + + dnsResolverPolicyVirtualNetworkLinkName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + } + } + + /// Lists DNS resolver policy virtual network links. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver policy virtual network links. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksList_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + } + } + + /// Updates a DNS resolver policy virtual network link. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/virtualNetworkLinks/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyVirtualNetworkLinkName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a DNS resolver policy virtual network link. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/virtualNetworkLinks/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsResolverPolicyVirtualNetworkLinkName = _match.Groups["dnsResolverPolicyVirtualNetworkLinkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/virtualNetworkLinks/" + + dnsResolverPolicyVirtualNetworkLinkName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolverPolicyVirtualNetworkLinksUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS resolver policy virtual network link for the + /// DNS resolver policy. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolverPolicyVirtualNetworkLinksUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsResolverPolicyVirtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyVirtualNetworkLinkName),dnsResolverPolicyVirtualNetworkLinkName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a DNS resolver. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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.Api20230701Preview.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 = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers/" + + global::System.Uri.EscapeDataString(dnsResolverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a DNS resolver. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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.Api20230701Preview.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 = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverName = _match.Groups["dnsResolverName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers/" + + dnsResolverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// an instance that will receive events. + /// + /// 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.Api20230701Preview.IDnsResolver body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Deletes a DNS resolver. WARNING: This operation cannot be undone. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers/" + + global::System.Uri.EscapeDataString(dnsResolverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Deletes a DNS resolver. WARNING: This operation cannot be undone. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverName = _match.Groups["dnsResolverName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers/" + + dnsResolverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + 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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + } + } + + /// Gets properties of a DNS resolver. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers/" + + global::System.Uri.EscapeDataString(dnsResolverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets properties of a DNS resolver. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverName = _match.Groups["dnsResolverName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers/" + + dnsResolverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + } + } + + /// Lists DNS resolvers in all resource groups of a subscription. + /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Network/dnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolvers within a resource group. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolvers within a resource group. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversListByResourceGroup_Validate(string subscriptionId, string resourceGroupName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + } + } + + /// Lists DNS resolver resource IDs linked to a virtual network. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual network. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/virtualNetworks/" + + global::System.Uri.EscapeDataString(virtualNetworkName) + + "/listDnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS resolver resource IDs linked to a virtual network. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/virtualNetworks/(?[^/]+)/listDnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var virtualNetworkName = _match.Groups["virtualNetworkName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/virtualNetworks/" + + virtualNetworkName + + "/listDnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversListByVirtualNetwork_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the virtual network. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversListByVirtualNetwork_Validate(string subscriptionId, string resourceGroupName, string virtualNetworkName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(virtualNetworkName),virtualNetworkName); + } + } + + /// Lists DNS resolvers in all resource groups of a subscription. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Network/dnsResolvers$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Network/dnsResolvers" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsResolversList_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + } + } + + /// Updates a DNS resolver. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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.Api20230701Preview.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 = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolvers/" + + global::System.Uri.EscapeDataString(dnsResolverName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Updates a DNS resolver. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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.Api20230701Preview.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 = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverName = _match.Groups["dnsResolverName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolvers/" + + dnsResolverName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Patch, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsResolversUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// 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) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Parameters supplied to the Update operation. + /// an instance that will receive events. + /// + /// 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.Api20230701Preview.IDnsResolverPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Creates or updates a DNS security rule for a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules/" + + global::System.Uri.EscapeDataString(dnsSecurityRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Creates or updates a DNS security rule for a DNS resolver policy. + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsSecurityRuleName = _match.Groups["dnsSecurityRuleName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules/" + + dnsSecurityRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Put, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + if (null != ifNoneMatch) + { + request.Headers.Add("If-None-Match",ifNoneMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. + /// Other values will be ignored. + /// Parameters supplied to the CreateOrUpdate operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsSecurityRuleName),dnsSecurityRuleName); + await eventListener.AssertMinimumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,1); + await eventListener.AssertMaximumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,80); + await eventListener.AssertRegEx(nameof(dnsSecurityRuleName),dnsSecurityRuleName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + await eventListener.AssertNotNull(nameof(ifNoneMatch),ifNoneMatch); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// + /// Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesDelete(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules/" + + global::System.Uri.EscapeDataString(dnsSecurityRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// + /// Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesDeleteViaIdentity(global::System.String viaIdentity, string ifMatch, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsSecurityRuleName = _match.Groups["dnsSecurityRuleName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules/" + + dnsSecurityRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // add headers parameters + if (null != ifMatch) + { + request.Headers.Add("If-Match",ifMatch); + } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesDelete_Call(request,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen + /// ETag value to prevent accidentally overwriting any concurrent changes. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesDelete_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsSecurityRuleName),dnsSecurityRuleName); + await eventListener.AssertMinimumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,1); + await eventListener.AssertMaximumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,80); + await eventListener.AssertRegEx(nameof(dnsSecurityRuleName),dnsSecurityRuleName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); + } + } + + /// Gets properties of a DNS security rule for a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesGet(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules/" + + global::System.Uri.EscapeDataString(dnsSecurityRuleName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets properties of a DNS security rule for a DNS resolver policy. + /// + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsSecurityRuleName = _match.Groups["dnsSecurityRuleName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules/" + + dnsSecurityRuleName + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } } } @@ -2884,28 +8330,223 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesGet_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsSecurityRuleName),dnsSecurityRuleName); + await eventListener.AssertMinimumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,1); + await eventListener.AssertMaximumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,80); + await eventListener.AssertRegEx(nameof(dnsSecurityRuleName),dnsSecurityRuleName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + } + } + + /// Lists DNS security rules for a DNS resolver policy. + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DnsResolversList_Validate(string subscriptionId, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + public async global::System.Threading.Tasks.Task DnsSecurityRulesList(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Lists DNS security rules for a DNS resolver policy. + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DnsSecurityRulesListViaIdentity(global::System.String viaIdentity, int? Top, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-07-01-preview"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + + "&" + + (null == Top ? global::System.String.Empty : "$top=" + global::System.Uri.EscapeDataString(Top.ToString())) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DnsSecurityRulesList_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + 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.Api20230701Preview.DnsSecurityRuleListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The ID of the target subscription. The value must be an UUID. + /// The name of the resource group. The name is case insensitive. + /// The name of the DNS resolver policy. + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DnsSecurityRulesList_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, int? Top, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); } } - /// Updates a DNS resolver. - /// The ID of the target subscription. + /// Updates a DNS security rule. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// Parameters supplied to the Update operation. @@ -2917,9 +8558,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.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) + public async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2929,8 +8570,10 @@ public partial class DnsResolver + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Network/dnsResolvers/" - + global::System.Uri.EscapeDataString(dnsResolverName) + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + global::System.Uri.EscapeDataString(dnsResolverPolicyName) + + "/dnsSecurityRules/" + + global::System.Uri.EscapeDataString(dnsSecurityRuleName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -2954,11 +8597,11 @@ public partial class DnsResolver request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsSecurityRulesUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Updates a DNS resolver. + /// Updates a DNS security rule. /// /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. @@ -2971,32 +8614,35 @@ 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.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) + public async global::System.Threading.Tasks.Task DnsSecurityRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { - var apiVersion = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolvers/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Network/dnsResolverPolicies/(?[^/]+)/dnsSecurityRules/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var dnsResolverName = _match.Groups["dnsResolverName"].Value; + var dnsResolverPolicyName = _match.Groups["dnsResolverPolicyName"].Value; + var dnsSecurityRuleName = _match.Groups["dnsSecurityRuleName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Network/dnsResolvers/" - + dnsResolverName + + "/providers/Microsoft.Network/dnsResolverPolicies/" + + dnsResolverPolicyName + + "/dnsSecurityRules/" + + dnsSecurityRuleName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3020,11 +8666,11 @@ public partial class DnsResolver request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DnsResolversUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DnsSecurityRulesUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3034,7 +8680,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 DnsSecurityRulesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3151,13 +8797,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.Api20220701.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.Api20230701Preview.DnsSecurityRule.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api50.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3173,12 +8819,13 @@ public partial class DnsResolver } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. - /// The name of the DNS resolver. + /// The name of the DNS resolver policy. + /// The name of the DNS security rule. /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen /// ETag value to prevent accidentally overwriting any concurrent changes. /// Parameters supplied to the Update operation. @@ -3186,16 +8833,23 @@ 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.Api20220701.IDnsResolverPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DnsSecurityRulesUpdate_Validate(string subscriptionId, string resourceGroupName, string dnsResolverPolicyName, string dnsSecurityRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(dnsResolverName),dnsResolverName); + await eventListener.AssertNotNull(nameof(dnsResolverPolicyName),dnsResolverPolicyName); + await eventListener.AssertMinimumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,1); + await eventListener.AssertMaximumLength(nameof(dnsResolverPolicyName),dnsResolverPolicyName,80); + await eventListener.AssertRegEx(nameof(dnsResolverPolicyName),dnsResolverPolicyName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); + await eventListener.AssertNotNull(nameof(dnsSecurityRuleName),dnsSecurityRuleName); + await eventListener.AssertMinimumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,1); + await eventListener.AssertMaximumLength(nameof(dnsSecurityRuleName),dnsSecurityRuleName,80); + await eventListener.AssertRegEx(nameof(dnsSecurityRuleName),dnsSecurityRuleName,@"^[a-zA-Z0-9]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?$"); await eventListener.AssertNotNull(nameof(ifMatch),ifMatch); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); @@ -3203,7 +8857,7 @@ public partial class DnsResolver } /// Creates or updates a forwarding rule in a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3221,9 +8875,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.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) + 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.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3284,9 +8938,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.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) + public async global::System.Threading.Tasks.Task ForwardingRulesCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3355,7 +9009,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 ) { @@ -3373,19 +9027,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3404,7 +9058,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3417,12 +9071,12 @@ 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.Api20220701.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.Api20230701Preview.IForwardingRule body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -3438,7 +9092,7 @@ public partial class DnsResolver /// /// Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3453,9 +9107,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3507,9 +9161,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3570,7 +9224,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 ) { @@ -3600,7 +9254,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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3619,7 +9273,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3634,7 +9288,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -3645,7 +9299,7 @@ public partial class DnsResolver } /// Gets properties of a forwarding rule in a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3657,9 +9311,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3700,9 +9354,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3756,7 +9410,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 ) { @@ -3774,13 +9428,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3799,7 +9453,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -3812,7 +9466,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -3822,7 +9476,7 @@ public partial class DnsResolver } /// Lists forwarding rules in a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -3834,9 +9488,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3879,9 +9533,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3935,7 +9589,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 ) { @@ -3953,13 +9607,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3978,7 +9632,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -3991,7 +9645,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4000,7 +9654,7 @@ public partial class DnsResolver } /// Updates a forwarding rule in a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -4015,9 +9669,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.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) + public async global::System.Threading.Tasks.Task ForwardingRulesUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string forwardingRuleName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4071,9 +9725,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.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) + public async global::System.Threading.Tasks.Task ForwardingRulesUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4137,7 +9791,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 ) { @@ -4155,13 +9809,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4180,7 +9834,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the forwarding rule. @@ -4191,12 +9845,12 @@ 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.Api20220701.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.Api20230701Preview.IForwardingRulePatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4209,7 +9863,7 @@ public partial class DnsResolver } /// Creates or updates an inbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4226,9 +9880,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.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) + 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.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4288,9 +9942,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.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) + public async global::System.Threading.Tasks.Task InboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4358,7 +10012,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 ) { @@ -4475,13 +10129,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4500,7 +10154,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4513,12 +10167,12 @@ 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.Api20220701.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.Api20230701Preview.IInboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4534,7 +10188,7 @@ public partial class DnsResolver /// /// Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4549,9 +10203,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4603,9 +10257,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4666,7 +10320,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 ) { @@ -4796,7 +10450,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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4815,7 +10469,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4830,7 +10484,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -4841,7 +10495,7 @@ public partial class DnsResolver } /// Gets properties of an inbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -4853,9 +10507,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4896,9 +10550,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4952,7 +10606,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 ) { @@ -4970,13 +10624,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -4995,7 +10649,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -5008,7 +10662,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5018,7 +10672,7 @@ public partial class DnsResolver } /// Lists inbound endpoints for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -5030,9 +10684,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5075,9 +10729,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5131,7 +10785,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 ) { @@ -5149,13 +10803,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5174,7 +10828,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -5187,7 +10841,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5196,7 +10850,7 @@ public partial class DnsResolver } /// Updates an inbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -5211,9 +10865,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.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) + public async global::System.Threading.Tasks.Task InboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string inboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5267,9 +10921,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.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) + public async global::System.Threading.Tasks.Task InboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5333,7 +10987,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 ) { @@ -5450,13 +11104,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5475,7 +11129,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the inbound endpoint for the DNS resolver. @@ -5486,12 +11140,12 @@ 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.Api20220701.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.Api20230701Preview.IInboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5504,7 +11158,7 @@ public partial class DnsResolver } /// Creates or updates an outbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -5521,9 +11175,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.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) + 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.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5583,9 +11237,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.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) + public async global::System.Threading.Tasks.Task OutboundEndpointsCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5653,7 +11307,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 ) { @@ -5770,13 +11424,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -5795,7 +11449,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -5808,12 +11462,12 @@ 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.Api20220701.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.Api20230701Preview.IOutboundEndpoint body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -5829,7 +11483,7 @@ public partial class DnsResolver /// /// Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -5844,9 +11498,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5898,9 +11552,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5961,7 +11615,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 ) { @@ -6091,7 +11745,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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6110,7 +11764,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6125,7 +11779,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6136,7 +11790,7 @@ public partial class DnsResolver } /// Gets properties of an outbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6148,9 +11802,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6191,9 +11845,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6247,7 +11901,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 ) { @@ -6265,13 +11919,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6290,7 +11944,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6303,7 +11957,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6313,7 +11967,7 @@ public partial class DnsResolver } /// Lists outbound endpoints for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -6325,9 +11979,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6370,9 +12024,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6426,7 +12080,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 ) { @@ -6444,13 +12098,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6469,7 +12123,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -6482,7 +12136,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6491,7 +12145,7 @@ public partial class DnsResolver } /// Updates an outbound endpoint for a DNS resolver. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6506,9 +12160,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.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) + public async global::System.Threading.Tasks.Task OutboundEndpointsUpdate(string subscriptionId, string resourceGroupName, string dnsResolverName, string outboundEndpointName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6562,9 +12216,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.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) + public async global::System.Threading.Tasks.Task OutboundEndpointsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6628,7 +12282,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 ) { @@ -6745,13 +12399,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -6770,7 +12424,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS resolver. /// The name of the outbound endpoint for the DNS resolver. @@ -6781,12 +12435,12 @@ 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.Api20220701.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.Api20230701Preview.IOutboundEndpointPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -6799,7 +12453,7 @@ public partial class DnsResolver } /// Creates or updates a virtual network link to a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -6816,9 +12470,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.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) + 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.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6878,9 +12532,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.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) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksCreateOrUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, string ifNoneMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6948,7 +12602,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 ) { @@ -7065,13 +12719,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7090,7 +12744,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you /// will get validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7103,12 +12757,12 @@ 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.Api20220701.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.Api20230701Preview.IVirtualNetworkLink body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7124,7 +12778,7 @@ public partial class DnsResolver /// /// Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7139,9 +12793,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7193,9 +12847,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7256,7 +12910,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 ) { @@ -7386,7 +13040,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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7405,7 +13059,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7420,7 +13074,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7431,7 +13085,7 @@ public partial class DnsResolver } /// Gets properties of a virtual network link to a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7443,9 +13097,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7486,9 +13140,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7542,7 +13196,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 ) { @@ -7560,13 +13214,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7585,7 +13239,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7598,7 +13252,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7608,7 +13262,7 @@ public partial class DnsResolver } /// Lists virtual network links to a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -7620,9 +13274,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7665,9 +13319,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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7721,7 +13375,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 ) { @@ -7739,13 +13393,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -7764,7 +13418,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The maximum number of results to return. If not specified, returns up to 100 results. @@ -7777,7 +13431,7 @@ public partial class DnsResolver using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -7786,7 +13440,7 @@ public partial class DnsResolver } /// Updates a virtual network link to a DNS forwarding ruleset. - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -7801,9 +13455,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.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) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdate(string subscriptionId, string resourceGroupName, string dnsForwardingRulesetName, string virtualNetworkLinkName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7857,9 +13511,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.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) + public async global::System.Threading.Tasks.Task VirtualNetworkLinksUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 = @"2022-07-01"; + var apiVersion = @"2023-07-01-preview"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7923,7 +13577,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 ) { @@ -8040,13 +13694,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.Api20220701.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.Api20230701Preview.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.Api20220701.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.Api20230701Preview.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -8065,7 +13719,7 @@ public partial class DnsResolver /// Validation method for method. Call this like the actual call, but you will get /// validation events back. /// - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. /// The name of the resource group. The name is case insensitive. /// The name of the DNS forwarding ruleset. /// The name of the virtual network link. @@ -8076,12 +13730,12 @@ 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.Api20220701.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.Api20230701Preview.IVirtualNetworkLinkPatch body, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertRegEx(nameof(subscriptionId),subscriptionId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.PowerShell.cs new file mode 100644 index 000000000000..c8ff3614a0ac --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.PowerShell.cs @@ -0,0 +1,136 @@ +// 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 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Any object + [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))] + public partial class Any + { + + /// + /// 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 a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Any(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Any(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + AfterDeserializePSObject(content); + } + + /// + /// 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.IAny DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Any(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.IAny DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Any(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.IAny 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(); + } + /// Any object + [System.ComponentModel.TypeConverter(typeof(AnyTypeConverter))] + public partial interface IAny + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.TypeConverter.cs new file mode 100644 index 000000000000..374307953157 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.TypeConverter.cs @@ -0,0 +1,146 @@ +// 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 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class AnyTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.IAny ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return Any.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return Any.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return Any.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.cs new file mode 100644 index 000000000000..cde3f00ccea8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.cs @@ -0,0 +1,34 @@ +// 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 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Any object + public partial class Any : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAnyInternal + { + + /// Creates an new instance. + public Any() + { + + } + } + /// Any object + public partial interface IAny : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + + } + /// Any object + internal partial interface IAnyInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.json.cs new file mode 100644 index 000000000000..b268c1e2e6b2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Any.json.cs @@ -0,0 +1,104 @@ +// 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 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Any object + public partial class Any + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal Any(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny. + /// + /// a to deserialize from. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny. + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new Any(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.cs deleted file mode 100644 index cf4fd778a2c8..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.cs +++ /dev/null @@ -1,79 +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.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - - /// - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - /// - public partial class ProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; } - - /// 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; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - 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; } - - /// 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; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public ProxyResource() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// 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) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - public partial interface IProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource - { - - } - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - internal partial interface IProxyResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal - { - - } -} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.cs deleted file mode 100644 index 4be7039c99e2..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.cs +++ /dev/null @@ -1,108 +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.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal - { - - /// Backing field for property. - private string _id; - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string Id { get => this._id; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => this._id; set { {_id = value;} } } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => this._name; set { {_name = value;} } } - - /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Type { get => this._type; set { {_type = value;} } } - - /// Backing field for property. - private string _name; - - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string Name { get => this._name; } - - /// Backing field for property. - private string _type; - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string Type { get => this._type; } - - /// Creates an new instance. - public Resource() - { - - } - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - public partial interface IResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}", - SerializedName = @"id", - PossibleTypes = new [] { typeof(string) })] - string Id { get; } - /// The name of the resource - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The name of the resource", - SerializedName = @"name", - PossibleTypes = new [] { typeof(string) })] - string Name { get; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = true, - Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", - SerializedName = @"type", - PossibleTypes = new [] { typeof(string) })] - string Type { get; } - - } - /// Common fields that are returned in the response for all Azure Resource Manager resources - internal partial interface IResourceInternal - - { - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - string Id { get; set; } - /// The name of the resource - string Name { get; set; } - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - string Type { get; set; } - - } -} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.cs deleted file mode 100644 index 0b1e3c0dbce6..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.cs +++ /dev/null @@ -1,113 +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.Api20 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; - - /// - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - /// - public partial class TrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates - { - /// - /// Backing field for Inherited model - /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(); - - /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; } - - /// Backing field for property. - private string _location; - - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public string Location { get => this._location; set => this._location = value; } - - /// 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; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - 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; } - - /// 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.Api20.ITrackedResourceTags _tag; - - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags()); set => this._tag = value; } - - /// - /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - /// - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; } - - /// Creates an new instance. - public TrackedResource() - { - - } - - /// Validates that this object meets the validation criteria. - /// an instance that will receive validation - /// events. - /// - /// 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) - { - await eventListener.AssertNotNull(nameof(__resource), __resource); - await eventListener.AssertObjectIsValid(nameof(__resource), __resource); - } - } - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - public partial interface ITrackedResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource - { - /// The geo-location where the resource lives - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = true, - ReadOnly = false, - Description = @"The geo-location where the resource lives", - SerializedName = @"location", - PossibleTypes = new [] { typeof(string) })] - string Location { get; set; } - /// Resource tags. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get; set; } - - } - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - internal partial interface ITrackedResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal - { - /// The geo-location where the resource lives - string Location { get; set; } - /// Resource tags. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get; set; } - - } -} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.PowerShell.cs deleted file mode 100644 index 49614dee8ba0..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.PowerShell.cs +++ /dev/null @@ -1,272 +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.Api20220701 -{ - using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - - /// Describes a forwarding rule within a DNS forwarding ruleset. - [System.ComponentModel.TypeConverter(typeof(ForwardingRuleTypeConverter))] - public partial class ForwardingRule - { - - /// - /// 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.IForwardingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new ForwardingRule(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.IForwardingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new ForwardingRule(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal ForwardingRule(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.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.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.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")) - { - ((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.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.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.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.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.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.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.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.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.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.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.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 . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal ForwardingRule(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.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.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.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")) - { - ((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.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.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.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.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.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.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.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.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.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.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.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); - } - - /// - /// 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.IForwardingRule 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 forwarding rule within a DNS forwarding ruleset. - [System.ComponentModel.TypeConverter(typeof(ForwardingRuleTypeConverter))] - public partial interface IForwardingRule - - { - - } -} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.PowerShell.cs similarity index 65% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.PowerShell.cs index 1ba564f8ecf9..d983fac74b8a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CloudError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,29 @@ internal CloudError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,49 +107,49 @@ internal CloudError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.TypeConverter.cs index e952f014075a..07c2d3f09b87 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.cs similarity index 71% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.cs index c6c5637ac0bf..997e65074622 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// An error message public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.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 */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Detail = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody _error; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Message = value ?? null; } /// Internal Acessors for Error - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[] Detail { get; set; } /// The error message body - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudError.json.cs index aad9d6c763dd..75997964d9ce 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudError.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json. { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.CloudErrorBody.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.PowerShell.cs similarity index 68% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.PowerShell.cs index 3a5ed9dd9ed6..59eb652c57aa 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CloudErrorBody partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal CloudErrorBody(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBodyTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,45 +103,45 @@ internal CloudErrorBody(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudErrorBody(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.TypeConverter.cs index 584169d04d2d..06853e17eaf0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.cs index fbdd9631991e..ac78a544f678 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.ICloudErrorBody, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBodyInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ICloudErrorBody[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.json.cs similarity index 92% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/CloudErrorBody.json.cs index 630f8eedf1f2..92ad94c7ef9b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/CloudErrorBody.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -68,18 +68,18 @@ internal CloudErrorBody(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.J {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.ICloudErrorBody) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.CloudErrorBody.FromJson(__u) )) ))() : null : Detail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudErrorBody. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudErrorBody FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.PowerShell.cs similarity index 52% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.PowerShell.cs index d0be054420a2..8272541e63ab 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsForwardingRuleset partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRuleset(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,77 +98,77 @@ internal DnsForwardingRuleset(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Name")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("DnsResolverOutboundEndpoint")) + if (content.Contains("Type")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Tag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("DnsResolverOutboundEndpoint")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("ResourceGuid")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -181,71 +183,71 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Name")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("DnsResolverOutboundEndpoint")) + if (content.Contains("Type")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Tag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("DnsResolverOutboundEndpoint")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("ResourceGuid")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -255,7 +257,7 @@ internal DnsForwardingRuleset(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.TypeConverter.cs index b15b7ec4c47f..71a99654eb95 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.cs similarity index 53% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.cs index 38a5da332b69..d4104c178873 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS forwarding ruleset. public partial class DnsForwardingRuleset : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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 ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).DnsResolverOutboundEndpoint = value ; } /// Backing field for property. private string _etag; @@ -34,101 +34,100 @@ public partial class DnsForwardingRuleset : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - 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; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - 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; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } /// 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; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)Property).ResourceGuid; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public DnsForwardingRuleset() @@ -151,7 +150,7 @@ public DnsForwardingRuleset() /// Describes a DNS forwarding ruleset. public partial interface IDnsForwardingRuleset : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource { /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules @@ -162,8 +161,8 @@ public partial interface IDnsForwardingRuleset : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// ETag of the DNS forwarding ruleset. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -191,69 +190,21 @@ public partial interface IDnsForwardingRuleset : SerializedName = @"resourceGuid", PossibleTypes = new [] { typeof(string) })] string ResourceGuid { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// Describes a DNS forwarding ruleset. internal partial interface IDnsForwardingRulesetInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal { /// /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. @@ -261,20 +212,6 @@ internal partial interface IDnsForwardingRulesetInternal : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The resourceGuid for the DNS forwarding ruleset. string ResourceGuid { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRuleset.json.cs index f4e747055536..66d42f6ad6b2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRuleset.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,21 +65,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.Api20220701.DnsForwardingRulesetProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.PowerShell.cs index 3c5ca4ebceeb..4ebcfbfd96d8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsForwardingRulesetListResult(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsForwardingRulesetListResult(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal DnsForwardingRulesetListResult(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.TypeConverter.cs index 2431a5310cc8..6186ca8725db 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.cs index 8631e480797e..416babf0a841 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IDnsForwardingRulesetListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRuleset[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRuleset) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRuleset[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetListResult.json.cs index 77471a03c481..8fa78f6227dc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsForwardingRulesetListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsRe { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.PowerShell.cs similarity index 70% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.PowerShell.cs index a036f84c1895..ffa6ca940f9a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DnsForwardingRulesetPatch(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("Tag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DnsForwardingRulesetPatch(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("Tag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal DnsForwardingRulesetPatch(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.TypeConverter.cs index 432ee51657c0..f91f9b7fd550 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.cs similarity index 77% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.cs index 38319d0a841f..63d93ca626c8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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 + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] _dnsResolverOutboundEndpoint; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get => this._dnsResolverOutboundEndpoint; set => this._dnsResolverOutboundEndpoint = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags()); set => this._tag = value; } /// Creates an new instance. public DnsForwardingRulesetPatch() @@ -49,16 +49,16 @@ public partial interface IDnsForwardingRulesetPatch : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get; set; } } /// Describes a DNS forwarding ruleset PATCH operation. @@ -69,9 +69,9 @@ internal partial interface IDnsForwardingRulesetPatchInternal /// The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules /// in the ruleset to the target DNS servers. /// - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverOutboundEndpoint { get; set; } /// Tags for DNS Resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.json.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatch.json.cs index e975c9db9beb..ae344b395ded 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsForwardingRulesetPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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;} + {_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.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverOutboundEndpoint;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsForwardingRulesetPatch(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.PowerShell.cs index d421fcab82ee..81480c081593 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal DnsForwardingRulesetPatchTags(global::System.Collections.IDictionary co } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal DnsForwardingRulesetPatchTags(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.TypeConverter.cs index 434a9b7addbf..5a4b1855ca21 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.cs index 1b642db2d3e0..8893ff9757d4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS Resolver. public partial class DnsForwardingRulesetPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.dictionary.cs index 8b0fc4ed4ac9..f8cd491a0ac0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.DnsForwardingRulesetPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetPatchTags.json.cs index e10a55364a9b..03cbb5de50e0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetPatchTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsForwardingRulesetPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsRes } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.PowerShell.cs similarity index 67% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.PowerShell.cs index 5c57e01d2858..013dc88a695d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DnsForwardingRulesetProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsForwardingRulesetProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,21 +98,21 @@ internal DnsForwardingRulesetProperties(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,15 +127,15 @@ internal DnsForwardingRulesetProperties(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("DnsResolverOutboundEndpoint")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverOutboundEndpoint",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).DnsResolverOutboundEndpoint, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -145,7 +145,7 @@ internal DnsForwardingRulesetProperties(global::System.Management.Automation.PSO /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.TypeConverter.cs index cd9cfa3e265d..69769848468d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.cs index 88fc573be22f..dbe124347d25 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IDnsForwardingRulesetProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] _dnsResolverOutboundEndpoint; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -65,8 +65,8 @@ public partial interface IDnsForwardingRulesetProperties : ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.json.cs similarity index 92% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsForwardingRulesetProperties.json.cs index cd0e889f8843..ff5140fc3946 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsForwardingRulesetProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DnsForwardingRulesetProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsRe { return; } - {_dnsResolverOutboundEndpoint = If( json?.PropertyT("dnsResolverOutboundEndpoints"), out var __jsonDnsResolverOutboundEndpoints) ? If( __jsonDnsResolverOutboundEndpoints as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsForwardingRulesetProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.PowerShell.cs similarity index 51% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.PowerShell.cs index 54b812707106..855289af297d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DnsResolver partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolver(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolver(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,85 +96,85 @@ internal DnsResolver(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("VirtualNetwork")) + if (content.Contains("Tag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("State")) + if (content.Contains("Location")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("VirtualNetwork")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("State")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } 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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -189,79 +189,79 @@ internal DnsResolver(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("VirtualNetwork")) + if (content.Contains("Tag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("State")) + if (content.Contains("Location")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("VirtualNetwork")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("State")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } 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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -271,7 +271,7 @@ internal DnsResolver(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.TypeConverter.cs index 8ceec59ebfca..6083af843efb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.cs similarity index 54% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.cs index b4d8d1abee4b..6ab8a7d8a8ae 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a DNS resolver. public partial class DnsResolver : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); /// Backing field for property. private string _etag; @@ -27,117 +27,116 @@ public partial class DnsResolver : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - 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; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - 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; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for State - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState = value; } + + /// Internal Acessors for VirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).VirtualNetwork = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } - /// Internal Acessors for VirtualNetwork - 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; } + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } /// 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; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPropertiesInternal)Property).DnsResolverState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).DnsResolverState; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal)Property).VirtualNetworkId = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)Property).VirtualNetworkId = value ; } /// Creates an new instance. public DnsResolver() @@ -160,7 +159,7 @@ public DnsResolver() /// Describes a DNS resolver. public partial interface IDnsResolver : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource { /// ETag of the DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -199,54 +198,6 @@ public partial interface IDnsResolver : SerializedName = @"dnsResolverState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? State { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, @@ -259,12 +210,12 @@ public partial interface IDnsResolver : } /// Describes a DNS resolver. internal partial interface IDnsResolverInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal { /// ETag of the DNS resolver. string Etag { get; set; } /// Properties of the DNS resolver. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. @@ -276,22 +227,8 @@ internal partial interface IDnsResolverInternal : /// 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.Support.DnsResolverState? State { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// 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.Api20220701.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolver.json.cs index 13970e9573ac..bcc8678caf98 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolver.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,21 +65,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.Api20220701.DnsResolverProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.PowerShell.cs new file mode 100644 index 000000000000..a436053758d1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.PowerShell.cs @@ -0,0 +1,274 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListTypeConverter))] + public partial class DnsResolverDomainList + { + + /// + /// 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.Api20230701Preview.IDnsResolverDomainList DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainList(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.Api20230701Preview.IDnsResolverDomainList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainList(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainList(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.Api20230701Preview.IDnsResolverDomainListInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ResourceGuid, global::System.Convert.ToString); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, 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 DnsResolverDomainList(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.Api20230701Preview.IDnsResolverDomainListInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).ResourceGuid, global::System.Convert.ToString); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, 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.Api20230701Preview.IDnsResolverDomainList 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 domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListTypeConverter))] + public partial interface IDnsResolverDomainList + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.TypeConverter.cs new file mode 100644 index 000000000000..d10a4f7da6b2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverDomainList ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainList.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainList.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainList.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.cs new file mode 100644 index 000000000000..1492a0ec176b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.cs @@ -0,0 +1,208 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver domain list. + public partial class DnsResolverDomainList : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string[] Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).Domain = value ; } + + /// Backing field for property. + private string _etag; + + /// ETag of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for ResourceGuid + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties _property; + + /// Properties of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties()); set => this._property = value; } + + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ProvisioningState; } + + /// The resourceGuid property of the DNS resolver domain list resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)Property).ResourceGuid; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public DnsResolverDomainList() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// 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) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Describes a DNS resolver domain list. + public partial interface IDnsResolverDomainList : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + { + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + string[] Domain { get; set; } + /// ETag of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ETag of the DNS resolver domain list.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The resourceGuid property of the DNS resolver domain list resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resourceGuid property of the DNS resolver domain list resource.", + SerializedName = @"resourceGuid", + PossibleTypes = new [] { typeof(string) })] + string ResourceGuid { get; } + + } + /// Describes a DNS resolver domain list. + internal partial interface IDnsResolverDomainListInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + { + /// The domains in the domain list. + string[] Domain { get; set; } + /// ETag of the DNS resolver domain list. + string Etag { get; set; } + /// Properties of the DNS resolver domain list. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties Property { get; set; } + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The resourceGuid property of the DNS resolver domain list resource. + string ResourceGuid { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.json.cs new file mode 100644 index 000000000000..0e9123019d4b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainList.json.cs @@ -0,0 +1,115 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver domain list. + public partial class DnsResolverDomainList + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainList(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainList(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.PowerShell.cs new file mode 100644 index 000000000000..2228a08984bf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver domain list for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchTypeConverter))] + public partial class DnsResolverDomainListPatch + { + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListPatch(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.Api20230701Preview.IDnsResolverDomainListPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListPatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListPatch(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.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, 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 DnsResolverDomainListPatch(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.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, 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.Api20230701Preview.IDnsResolverDomainListPatch 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 domain list for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchTypeConverter))] + public partial interface IDnsResolverDomainListPatch + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.TypeConverter.cs new file mode 100644 index 000000000000..6b31bec07af6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListPatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListPatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListPatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.cs new file mode 100644 index 000000000000..5b3350545b78 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver domain list for PATCH operation. + public partial class DnsResolverDomainListPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal + { + + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string[] Domain { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)Property).Domain; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)Property).Domain = value ?? null /* arrayOf */; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties()); set { {_property = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties _property; + + /// Updatable properties of the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties()); set => this._property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags _tag; + + /// Tags for DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public DnsResolverDomainListPatch() + { + + } + } + /// Describes a DNS resolver domain list for PATCH operation. + public partial interface IDnsResolverDomainListPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + string[] Domain { get; set; } + /// Tags for DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS resolver domain list.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get; set; } + + } + /// Describes a DNS resolver domain list for PATCH operation. + internal partial interface IDnsResolverDomainListPatchInternal + + { + /// The domains in the domain list. + string[] Domain { get; set; } + /// Updatable properties of the DNS resolver policy virtual network link. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties Property { get; set; } + /// Tags for DNS resolver domain list. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.json.cs new file mode 100644 index 000000000000..f10d716ea2d8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatch.json.cs @@ -0,0 +1,110 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver domain list for PATCH operation. + public partial class DnsResolverDomainListPatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + 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; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.PowerShell.cs new file mode 100644 index 000000000000..f4836bce955b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.PowerShell.cs @@ -0,0 +1,148 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the updatable properties of a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchPropertiesTypeConverter))] + public partial class DnsResolverDomainListPatchProperties + { + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListPatchProperties(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.Api20230701Preview.IDnsResolverDomainListPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListPatchProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListPatchProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, 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 DnsResolverDomainListPatchProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, 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.Api20230701Preview.IDnsResolverDomainListPatchProperties 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(); + } + /// Represents the updatable properties of a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchPropertiesTypeConverter))] + public partial interface IDnsResolverDomainListPatchProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs new file mode 100644 index 000000000000..8a03f61d7ba5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.TypeConverter.cs @@ -0,0 +1,150 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListPatchPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListPatchProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListPatchProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatchProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatchProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.cs new file mode 100644 index 000000000000..b74eacf8fc7b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.cs @@ -0,0 +1,51 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the updatable properties of a DNS resolver domain list. + public partial class DnsResolverDomainListPatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchPropertiesInternal + { + + /// Backing field for property. + private string[] _domain; + + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string[] Domain { get => this._domain; set => this._domain = value; } + + /// Creates an new instance. + public DnsResolverDomainListPatchProperties() + { + + } + } + /// Represents the updatable properties of a DNS resolver domain list. + public partial interface IDnsResolverDomainListPatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + string[] Domain { get; set; } + + } + /// Represents the updatable properties of a DNS resolver domain list. + internal partial interface IDnsResolverDomainListPatchPropertiesInternal + + { + /// The domains in the domain list. + string[] Domain { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.json.cs new file mode 100644 index 000000000000..4dfc5305a428 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchProperties.json.cs @@ -0,0 +1,117 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the updatable properties of a DNS resolver domain list. + public partial class DnsResolverDomainListPatchProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListPatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_domain = If( json?.PropertyT("domains"), out var __jsonDomains) ? If( __jsonDomains 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)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Domain;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatchProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._domain) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._domain ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("domains",__w); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.PowerShell.cs new file mode 100644 index 000000000000..36257054914c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.PowerShell.cs @@ -0,0 +1,142 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Tags for DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchTagsTypeConverter))] + public partial class DnsResolverDomainListPatchTags + { + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListPatchTags(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.Api20230701Preview.IDnsResolverDomainListPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListPatchTags(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListPatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverDomainListPatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + 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.Api20230701Preview.IDnsResolverDomainListPatchTags 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(); + } + /// Tags for DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPatchTagsTypeConverter))] + public partial interface IDnsResolverDomainListPatchTags + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.TypeConverter.cs new file mode 100644 index 000000000000..d725e07dc442 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListPatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListPatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListPatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListPatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.cs new file mode 100644 index 000000000000..3aae08de168b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS resolver domain list. + public partial class DnsResolverDomainListPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTagsInternal + { + + /// Creates an new instance. + public DnsResolverDomainListPatchTags() + { + + } + } + /// Tags for DNS resolver domain list. + public partial interface IDnsResolverDomainListPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + + } + /// Tags for DNS resolver domain list. + internal partial interface IDnsResolverDomainListPatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.dictionary.cs new file mode 100644 index 000000000000..9da0b63219b1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverDomainListPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.json.cs new file mode 100644 index 000000000000..dde26a675585 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListPatchTags.json.cs @@ -0,0 +1,109 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS resolver domain list. + public partial class DnsResolverDomainListPatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + /// + internal DnsResolverDomainListPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListPatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.PowerShell.cs new file mode 100644 index 000000000000..f5e5fdf35567 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.PowerShell.cs @@ -0,0 +1,162 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the properties of a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPropertiesTypeConverter))] + public partial class DnsResolverDomainListProperties + { + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListProperties(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.Api20230701Preview.IDnsResolverDomainListProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid, 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 DnsResolverDomainListProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Domain")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).Domain = (string[]) content.GetValueForProperty("Domain",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).Domain, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal)this).ResourceGuid, 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.Api20230701Preview.IDnsResolverDomainListProperties 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(); + } + /// Represents the properties of a DNS resolver domain list. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListPropertiesTypeConverter))] + public partial interface IDnsResolverDomainListProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.TypeConverter.cs new file mode 100644 index 000000000000..a1e5c50c0c51 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.cs new file mode 100644 index 000000000000..b84877f2a680 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.cs @@ -0,0 +1,100 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver domain list. + public partial class DnsResolverDomainListProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal + { + + /// Backing field for property. + private string[] _domain; + + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string[] Domain { get => this._domain; set => this._domain = value; } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ResourceGuid + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; + + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _resourceGuid; + + /// The resourceGuid property of the DNS resolver domain list resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string ResourceGuid { get => this._resourceGuid; } + + /// Creates an new instance. + public DnsResolverDomainListProperties() + { + + } + } + /// Represents the properties of a DNS resolver domain list. + public partial interface IDnsResolverDomainListProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The domains in the domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + string[] Domain { get; set; } + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The resourceGuid property of the DNS resolver domain list resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resourceGuid property of the DNS resolver domain list resource.", + SerializedName = @"resourceGuid", + PossibleTypes = new [] { typeof(string) })] + string ResourceGuid { get; } + + } + /// Represents the properties of a DNS resolver domain list. + internal partial interface IDnsResolverDomainListPropertiesInternal + + { + /// The domains in the domain list. + string[] Domain { get; set; } + /// + /// The current provisioning state of the DNS resolver domain list. This is a read-only property and any attempt to set this + /// value will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The resourceGuid property of the DNS resolver domain list resource. + string ResourceGuid { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.json.cs new file mode 100644 index 000000000000..2ca073bf520a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListProperties.json.cs @@ -0,0 +1,126 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver domain list. + public partial class DnsResolverDomainListProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_domain = If( json?.PropertyT("domains"), out var __jsonDomains) ? If( __jsonDomains 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)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Domain;} + {_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.Api20230701Preview.IDnsResolverDomainListProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._domain) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._domain ) + { + AddIf(null != (((object)__x)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(__x.ToString()) : null ,__w.Add); + } + container.Add("domains",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._resourceGuid)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._resourceGuid.ToString()) : null, "resourceGuid" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.PowerShell.cs new file mode 100644 index 000000000000..7573810a9d14 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// The response to an enumeration operation on DNS resolver domain lists. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListResultTypeConverter))] + public partial class DnsResolverDomainListResult + { + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverDomainListResult(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.Api20230701Preview.IDnsResolverDomainListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverDomainListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverDomainListResult(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.Api20230701Preview.IDnsResolverDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)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 DnsResolverDomainListResult(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.Api20230701Preview.IDnsResolverDomainListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal)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.Api20230701Preview.IDnsResolverDomainListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The response to an enumeration operation on DNS resolver domain lists. + [System.ComponentModel.TypeConverter(typeof(DnsResolverDomainListResultTypeConverter))] + public partial interface IDnsResolverDomainListResult + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.TypeConverter.cs new file mode 100644 index 000000000000..f69257129b6f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverDomainListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverDomainListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverDomainListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverDomainListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverDomainListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.cs new file mode 100644 index 000000000000..df209b98487b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.cs @@ -0,0 +1,71 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The response to an enumeration operation on DNS resolver domain lists. + public partial class DnsResolverDomainListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[] _value; + + /// Enumeration of the DNS resolver domain lists. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DnsResolverDomainListResult() + { + + } + } + /// The response to an enumeration operation on DNS resolver domain lists. + public partial interface IDnsResolverDomainListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The continuation token for the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Enumeration of the DNS resolver domain lists. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enumeration of the DNS resolver domain lists.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[] Value { get; set; } + + } + /// The response to an enumeration operation on DNS resolver domain lists. + internal partial interface IDnsResolverDomainListResultInternal + + { + /// The continuation token for the next page of results. + string NextLink { get; set; } + /// Enumeration of the DNS resolver domain lists. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.json.cs new file mode 100644 index 000000000000..0e8200162dd6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverDomainListResult.json.cs @@ -0,0 +1,121 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The response to an enumeration operation on DNS resolver domain lists. + public partial class DnsResolverDomainListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverDomainListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + 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.Api20230701Preview.IDnsResolverDomainList) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverDomainListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.PowerShell.cs index 18cec693e83a..00d293d48921 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ 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 . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DnsResolverListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverListResult(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 DnsResolverListResult(global::System.Collections.IDictionary content) // 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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +123,11 @@ internal DnsResolverListResult(global::System.Management.Automation.PSObject con // 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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +137,7 @@ internal DnsResolverListResult(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult 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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.TypeConverter.cs index 63eb0be066b4..07ba9202b913 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.cs index ea4fb0d956b8..e62b5958f5f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IDnsResolverListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolver[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolver[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolver) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolver[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverListResult.json.cs index 413f92b82c23..85976111b1cc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DnsResolverListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IDnsResolver) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.PowerShell.cs similarity index 80% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.PowerShell.cs index 55bdb0fe8dfb..c87ffcfbc02d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,13 +98,13 @@ internal DnsResolverPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -117,7 +119,7 @@ internal DnsResolverPatch(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } @@ -127,7 +129,7 @@ internal DnsResolverPatch(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.TypeConverter.cs index 1d3a59f016a5..584f1bed9640 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.cs index 62a05992e729..0674da28d5d5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IDnsResolverPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatch.json.cs index bcbe472e0a55..ed063e94c60e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DnsResolverPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.PowerShell.cs index 62f0546ce9a3..89c9fac36f71 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverPatchTags(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,7 +102,7 @@ internal DnsResolverPatchTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,7 +125,7 @@ internal DnsResolverPatchTags(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.TypeConverter.cs index dd03d4c74d80..6f8b17b361fa 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.cs similarity index 92% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.cs index fe2ece2f1fce..53dc527e4a91 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for DNS Resolver. public partial class DnsResolverPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.dictionary.cs index d1c371364b18..403955670abf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.DnsResolverPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPatchTags.json.cs index bac9cf3bbf53..9a4ed6380fde 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverPatchTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DnsResolverPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.PowerShell.cs new file mode 100644 index 000000000000..ae47d84e6f10 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.PowerShell.cs @@ -0,0 +1,266 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyTypeConverter))] + public partial class DnsResolverPolicy + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicy DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicy(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.Api20230701Preview.IDnsResolverPolicy DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicy(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicy(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.Api20230701Preview.IDnsResolverPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ResourceGuid, 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 DnsResolverPolicy(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.Api20230701Preview.IDnsResolverPolicyInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ResourceGuid")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal)this).ResourceGuid, 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.Api20230701Preview.IDnsResolverPolicy 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 policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyTypeConverter))] + public partial interface IDnsResolverPolicy + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.TypeConverter.cs new file mode 100644 index 000000000000..4dab95057f67 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicy ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicy.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicy.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicy.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.cs new file mode 100644 index 000000000000..62e7e905584c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.cs @@ -0,0 +1,194 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy. + public partial class DnsResolverPolicy : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + + /// Backing field for property. + private string _etag; + + /// ETag of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for ResourceGuid + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties _property; + + /// Properties of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties()); set => this._property = value; } + + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ProvisioningState; } + + /// The resourceGuid property of the DNS resolver policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)Property).ResourceGuid; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public DnsResolverPolicy() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// 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) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Describes a DNS resolver policy. + public partial interface IDnsResolverPolicy : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + { + /// ETag of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ETag of the DNS resolver policy.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The resourceGuid property of the DNS resolver policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resourceGuid property of the DNS resolver policy resource.", + SerializedName = @"resourceGuid", + PossibleTypes = new [] { typeof(string) })] + string ResourceGuid { get; } + + } + /// Describes a DNS resolver policy. + internal partial interface IDnsResolverPolicyInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + { + /// ETag of the DNS resolver policy. + string Etag { get; set; } + /// Properties of the DNS resolver policy. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties Property { get; set; } + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The resourceGuid property of the DNS resolver policy resource. + string ResourceGuid { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.json.cs new file mode 100644 index 000000000000..0f322ed198db --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicy.json.cs @@ -0,0 +1,115 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy. + public partial class DnsResolverPolicy + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicy(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicy(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.PowerShell.cs new file mode 100644 index 000000000000..af787d355f32 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.PowerShell.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// The response to an enumeration operation on DNS resolver policies. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyListResultTypeConverter))] + public partial class DnsResolverPolicyListResult + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyListResult(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.Api20230701Preview.IDnsResolverPolicyListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyListResult(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.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)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 DnsResolverPolicyListResult(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.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal)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.Api20230701Preview.IDnsResolverPolicyListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The response to an enumeration operation on DNS resolver policies. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyListResultTypeConverter))] + public partial interface IDnsResolverPolicyListResult + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.TypeConverter.cs new file mode 100644 index 000000000000..f019610f227a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.cs new file mode 100644 index 000000000000..2e3dd5cc4e2e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.cs @@ -0,0 +1,71 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The response to an enumeration operation on DNS resolver policies. + public partial class DnsResolverPolicyListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[] _value; + + /// Enumeration of the DNS resolver policies. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DnsResolverPolicyListResult() + { + + } + } + /// The response to an enumeration operation on DNS resolver policies. + public partial interface IDnsResolverPolicyListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The continuation token for the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Enumeration of the DNS resolver policies. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enumeration of the DNS resolver policies.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[] Value { get; set; } + + } + /// The response to an enumeration operation on DNS resolver policies. + internal partial interface IDnsResolverPolicyListResultInternal + + { + /// The continuation token for the next page of results. + string NextLink { get; set; } + /// Enumeration of the DNS resolver policies. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.json.cs new file mode 100644 index 000000000000..adf5343c1ccc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyListResult.json.cs @@ -0,0 +1,121 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The response to an enumeration operation on DNS resolver policies. + public partial class DnsResolverPolicyListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + 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.Api20230701Preview.IDnsResolverPolicy) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.PowerShell.cs new file mode 100644 index 000000000000..5b6629805c87 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.PowerShell.cs @@ -0,0 +1,146 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver policy for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPatchTypeConverter))] + public partial class DnsResolverPolicyPatch + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyPatch(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.Api20230701Preview.IDnsResolverPolicyPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyPatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyPatch(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyPatch(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTagsTypeConverter.ConvertFrom); + } + 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.Api20230701Preview.IDnsResolverPolicyPatch 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 policy for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPatchTypeConverter))] + public partial interface IDnsResolverPolicyPatch + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.TypeConverter.cs new file mode 100644 index 000000000000..d194b9d16dc7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyPatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyPatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyPatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyPatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyPatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.cs new file mode 100644 index 000000000000..e78d7767015a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.cs @@ -0,0 +1,51 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy for PATCH operation. + public partial class DnsResolverPolicyPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags _tag; + + /// Tags for DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public DnsResolverPolicyPatch() + { + + } + } + /// Describes a DNS resolver policy for PATCH operation. + public partial interface IDnsResolverPolicyPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// Tags for DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS resolver policy.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get; set; } + + } + /// Describes a DNS resolver policy for PATCH operation. + internal partial interface IDnsResolverPolicyPatchInternal + + { + /// Tags for DNS resolver policy. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.json.cs new file mode 100644 index 000000000000..035477abc618 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatch.json.cs @@ -0,0 +1,108 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy for PATCH operation. + public partial class DnsResolverPolicyPatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyPatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + 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; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.PowerShell.cs new file mode 100644 index 000000000000..64e5e212c900 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.PowerShell.cs @@ -0,0 +1,142 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Tags for DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPatchTagsTypeConverter))] + public partial class DnsResolverPolicyPatchTags + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyPatchTags(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.Api20230701Preview.IDnsResolverPolicyPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyPatchTags(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyPatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyPatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + 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.Api20230701Preview.IDnsResolverPolicyPatchTags 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(); + } + /// Tags for DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPatchTagsTypeConverter))] + public partial interface IDnsResolverPolicyPatchTags + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.TypeConverter.cs new file mode 100644 index 000000000000..34d3a4699e4c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyPatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyPatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyPatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyPatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyPatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.cs new file mode 100644 index 000000000000..013a58e0be68 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS resolver policy. + public partial class DnsResolverPolicyPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTagsInternal + { + + /// Creates an new instance. + public DnsResolverPolicyPatchTags() + { + + } + } + /// Tags for DNS resolver policy. + public partial interface IDnsResolverPolicyPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + + } + /// Tags for DNS resolver policy. + internal partial interface IDnsResolverPolicyPatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.dictionary.cs new file mode 100644 index 000000000000..5206708a5c23 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPolicyPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.json.cs new file mode 100644 index 000000000000..04f2d495e022 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyPatchTags.json.cs @@ -0,0 +1,109 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS resolver policy. + public partial class DnsResolverPolicyPatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + /// + internal DnsResolverPolicyPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyPatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.PowerShell.cs similarity index 63% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.PowerShell.cs index 794ab3a4fad3..51077b2f2f27 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.PowerShell.cs @@ -3,15 +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.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - /// - [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] - public partial class ProxyResource + /// Represents the properties of a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPropertiesTypeConverter))] + public partial class DnsResolverPolicyProperties { /// @@ -57,44 +55,39 @@ public partial class ProxyResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new ProxyResource(content); + return new DnsResolverPolicyProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new ProxyResource(content); + return new DnsResolverPolicyProperties(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.Api20.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal ProxyResource(global::System.Collections.IDictionary content) + internal DnsResolverPolicyProperties(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -103,27 +96,23 @@ internal ProxyResource(global::System.Collections.IDictionary content) return; } // actually deserialize - 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")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. - internal ProxyResource(global::System.Management.Automation.PSObject content) + internal DnsResolverPolicyProperties(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -132,29 +121,32 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - 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")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal)this).ResourceGuid, 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.Api20230701Preview.IDnsResolverPolicyProperties 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 resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location - [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] - public partial interface IProxyResource + /// Represents the properties of a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyPropertiesTypeConverter))] + public partial interface IDnsResolverPolicyProperties { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.TypeConverter.cs new file mode 100644 index 000000000000..8ad816a91ef3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.cs new file mode 100644 index 000000000000..bed6a9bf307f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.cs @@ -0,0 +1,83 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver policy. + public partial class DnsResolverPolicyProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal + { + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for ResourceGuid + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; + + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private string _resourceGuid; + + /// The resourceGuid property of the DNS resolver policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string ResourceGuid { get => this._resourceGuid; } + + /// Creates an new instance. + public DnsResolverPolicyProperties() + { + + } + } + /// Represents the properties of a DNS resolver policy. + public partial interface IDnsResolverPolicyProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The resourceGuid property of the DNS resolver policy resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The resourceGuid property of the DNS resolver policy resource.", + SerializedName = @"resourceGuid", + PossibleTypes = new [] { typeof(string) })] + string ResourceGuid { get; } + + } + /// Represents the properties of a DNS resolver policy. + internal partial interface IDnsResolverPolicyPropertiesInternal + + { + /// + /// The current provisioning state of the DNS resolver policy. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The resourceGuid property of the DNS resolver policy resource. + string ResourceGuid { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.json.cs new file mode 100644 index 000000000000..d54fdea92b41 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyProperties.json.cs @@ -0,0 +1,116 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver policy. + public partial class DnsResolverPolicyProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_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.Api20230701Preview.IDnsResolverPolicyProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._resourceGuid)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._resourceGuid.ToString()) : null, "resourceGuid" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs new file mode 100644 index 000000000000..f292eea372d0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.PowerShell.cs @@ -0,0 +1,276 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLink + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLink(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLink(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLink(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)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 DnsResolverPolicyVirtualNetworkLink(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal)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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink 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 policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLink + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs new file mode 100644 index 000000000000..1a93c9d26298 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.TypeConverter.cs @@ -0,0 +1,149 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLink.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLink.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLink.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.cs new file mode 100644 index 000000000000..ad6eab635c31 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.cs @@ -0,0 +1,196 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLink : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + + /// Backing field for property. + private string _etag; + + /// ETag of the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for VirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties _property; + + /// Properties of the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties()); set => this._property = value; } + + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } + + /// Creates an new instance. + public DnsResolverPolicyVirtualNetworkLink() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// 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) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Describes a DNS resolver policy virtual network link. + public partial interface IDnsResolverPolicyVirtualNetworkLink : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + { + /// ETag of the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ETag of the DNS resolver policy virtual network link.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string VirtualNetworkId { get; set; } + + } + /// Describes a DNS resolver policy virtual network link. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + { + /// ETag of the DNS resolver policy virtual network link. + string Etag { get; set; } + /// Properties of the DNS resolver policy virtual network link. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties Property { get; set; } + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The reference to the virtual network. This cannot be changed after creation. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } + /// Resource ID. + string VirtualNetworkId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.json.cs new file mode 100644 index 000000000000..dc28c3407528 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLink.json.cs @@ -0,0 +1,116 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLink + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLink(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLink(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs new file mode 100644 index 000000000000..3beaf3698fce --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.PowerShell.cs @@ -0,0 +1,159 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkListResultTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinkListResult + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinkListResult(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinkListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkListResult(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)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 DnsResolverPolicyVirtualNetworkLinkListResult(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal)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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The response to an enumeration operation on DNS resolver policy virtual network links. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkListResultTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinkListResult + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs new file mode 100644 index 000000000000..8248323b722f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.TypeConverter.cs @@ -0,0 +1,151 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinkListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs new file mode 100644 index 000000000000..58b37168d296 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.cs @@ -0,0 +1,75 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// + public partial class DnsResolverPolicyVirtualNetworkLinkListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[] _value; + + /// Enumeration of the DNS resolver policy virtual network links. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinkListResult() + { + + } + } + /// The response to an enumeration operation on DNS resolver policy virtual network links. + public partial interface IDnsResolverPolicyVirtualNetworkLinkListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The continuation token for the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Enumeration of the DNS resolver policy virtual network links. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enumeration of the DNS resolver policy virtual network links.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get; set; } + + } + /// The response to an enumeration operation on DNS resolver policy virtual network links. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkListResultInternal + + { + /// The continuation token for the next page of results. + string NextLink { get; set; } + /// Enumeration of the DNS resolver policy virtual network links. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs new file mode 100644 index 000000000000..c3ea65f70cb0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkListResult.json.cs @@ -0,0 +1,126 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The response to an enumeration operation on DNS resolver policy virtual network links. + /// + public partial class DnsResolverPolicyVirtualNetworkLinkListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLinkListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs new file mode 100644 index 000000000000..6a54a43df226 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.PowerShell.cs @@ -0,0 +1,149 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPatchTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinkPatch + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinkPatch(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinkPatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkPatch(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkPatch(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter.ConvertFrom); + } + 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch 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 policy virtual network link for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPatchTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinkPatch + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs new file mode 100644 index 000000000000..321eb1e1ddfd --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.TypeConverter.cs @@ -0,0 +1,151 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise + /// false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinkPatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkPatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkPatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs new file mode 100644 index 000000000000..46e328bce1b9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.cs @@ -0,0 +1,53 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + public partial class DnsResolverPolicyVirtualNetworkLinkPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags _tag; + + /// Tags for the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags()); set => this._tag = value; } + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinkPatch() + { + + } + } + /// Describes a DNS resolver policy virtual network link for PATCH operation. + public partial interface IDnsResolverPolicyVirtualNetworkLinkPatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// Tags for the DNS resolver policy virtual network link. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for the DNS resolver policy virtual network link.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get; set; } + + } + /// Describes a DNS resolver policy virtual network link for PATCH operation. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkPatchInternal + + { + /// Tags for the DNS resolver policy virtual network link. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs new file mode 100644 index 000000000000..49eb7a287a79 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatch.json.cs @@ -0,0 +1,110 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + public partial class DnsResolverPolicyVirtualNetworkLinkPatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLinkPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkPatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + 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; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs new file mode 100644 index 000000000000..eab2b52b36c5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.PowerShell.cs @@ -0,0 +1,145 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Tags for the DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinkPatchTags(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinkPatchTags(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkPatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkPatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags 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(); + } + /// Tags for the DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinkPatchTags + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs new file mode 100644 index 000000000000..e25e5a3008cc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.TypeConverter.cs @@ -0,0 +1,151 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinkPatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkPatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkPatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs new file mode 100644 index 000000000000..fc95fc956d85 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.cs @@ -0,0 +1,37 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for the DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTagsInternal + { + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinkPatchTags() + { + + } + } + /// Tags for the DNS resolver policy virtual network link. + public partial interface IDnsResolverPolicyVirtualNetworkLinkPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + + } + /// Tags for the DNS resolver policy virtual network link. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkPatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs new file mode 100644 index 000000000000..20fea977a5bc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs new file mode 100644 index 000000000000..76879c16e1cc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkPatchTags.json.cs @@ -0,0 +1,112 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for the DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLinkPatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + /// + internal DnsResolverPolicyVirtualNetworkLinkPatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkPatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs new file mode 100644 index 000000000000..c2d7c1ef35a8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.PowerShell.cs @@ -0,0 +1,165 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the properties of a DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter))] + public partial class DnsResolverPolicyVirtualNetworkLinkProperties + { + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsResolverPolicyVirtualNetworkLinkProperties(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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsResolverPolicyVirtualNetworkLinkProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsResolverPolicyVirtualNetworkLinkProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)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 DnsResolverPolicyVirtualNetworkLinkProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("VirtualNetwork")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("VirtualNetworkId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal)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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties 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(); + } + /// Represents the properties of a DNS resolver policy virtual network link. + [System.ComponentModel.TypeConverter(typeof(DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter))] + public partial interface IDnsResolverPolicyVirtualNetworkLinkProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs new file mode 100644 index 000000000000..48bce7de0b8a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.TypeConverter.cs @@ -0,0 +1,151 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsResolverPolicyVirtualNetworkLinkPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, + /// otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsResolverPolicyVirtualNetworkLinkProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsResolverPolicyVirtualNetworkLinkProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs new file mode 100644 index 000000000000..0b94eace7238 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.cs @@ -0,0 +1,91 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLinkProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal + { + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Internal Acessors for VirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set { {_virtualNetwork = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; + + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20230701Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id = value ; } + + /// + /// Creates an new instance. + /// + public DnsResolverPolicyVirtualNetworkLinkProperties() + { + + } + } + /// Represents the properties of a DNS resolver policy virtual network link. + public partial interface IDnsResolverPolicyVirtualNetworkLinkProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// Resource ID. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string VirtualNetworkId { get; set; } + + } + /// Represents the properties of a DNS resolver policy virtual network link. + internal partial interface IDnsResolverPolicyVirtualNetworkLinkPropertiesInternal + + { + /// + /// The current provisioning state of the DNS resolver policy virtual network link. This is a read-only property and any attempt + /// to set this value will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The reference to the virtual network. This cannot be changed after creation. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } + /// Resource ID. + string VirtualNetworkId { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs new file mode 100644 index 000000000000..b8dc3b5a46f9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverPolicyVirtualNetworkLinkProperties.json.cs @@ -0,0 +1,116 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS resolver policy virtual network link. + public partial class DnsResolverPolicyVirtualNetworkLinkProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsResolverPolicyVirtualNetworkLinkProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsResolverPolicyVirtualNetworkLinkProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._virtualNetwork ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._virtualNetwork.ToJson(null,serializationMode) : null, "virtualNetwork" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.PowerShell.cs similarity index 63% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.PowerShell.cs index c34b5e1a95b9..b384273ad02f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class DnsResolverProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DnsResolverProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,29 +98,29 @@ internal DnsResolverProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,23 +135,23 @@ internal DnsResolverProperties(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("DnsResolverState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).DnsResolverState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState?) content.GetValueForProperty("DnsResolverState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).DnsResolverState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -159,7 +161,7 @@ internal DnsResolverProperties(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.TypeConverter.cs index c0993466f78f..ee7739da1461 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.cs similarity index 83% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.cs index b2959afd5227..acc22d3cfd98 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IDnsResolverProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPropertiesInternal.DnsResolverState { get => this._dnsResolverState; set { {_dnsResolverState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsResolverState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IDnsResolverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Internal Acessors for VirtualNetwork - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id = value ; } /// Creates an new instance. public DnsResolverProperties() @@ -127,7 +127,7 @@ internal partial interface IDnsResolverPropertiesInternal /// The resourceGuid property of the DNS resolver resource. string ResourceGuid { get; set; } /// The reference to the virtual network. This cannot be changed after creation. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsResolverProperties.json.cs index f22e041c7d84..1d2031754fa7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/DnsResolverProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DnsResolverProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} {_dnsResolverState = If( json?.PropertyT("dnsResolverState"), out var __jsonDnsResolverState) ? (string)__jsonDnsResolverState : (string)DnsResolverState;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} {_resourceGuid = If( json?.PropertyT("resourceGuid"), out var __jsonResourceGuid) ? (string)__jsonResourceGuid : (string)ResourceGuid;} @@ -73,13 +73,13 @@ internal DnsResolverProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.PowerShell.cs new file mode 100644 index 000000000000..cabd9d7beafa --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.PowerShell.cs @@ -0,0 +1,304 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleTypeConverter))] + public partial class DnsSecurityRule + { + + /// + /// 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.Api20230701Preview.IDnsSecurityRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRule(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.Api20230701Preview.IDnsSecurityRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRule(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRule(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.Api20230701Preview.IDnsSecurityRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRule(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.Api20230701Preview.IDnsSecurityRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + 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.Api20230701Preview.IDnsSecurityRule 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 security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleTypeConverter))] + public partial interface IDnsSecurityRule + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.TypeConverter.cs new file mode 100644 index 000000000000..34611ca7b823 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRuleTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsSecurityRule ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRule.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRule.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRule.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.cs new file mode 100644 index 000000000000..b397d2f23b2a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.cs @@ -0,0 +1,252 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS security rule. + public partial class DnsSecurityRule : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ActionBlockResponseCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ActionBlockResponseCode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); } + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).DnsResolverDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).DnsResolverDomainList = value ; } + + /// Backing field for property. + private string _etag; + + /// ETag of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Etag { get => this._etag; } + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).Action = value; } + + /// Internal Acessors for Etag + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties()); set { {_property = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } + + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public int Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).Priority = value ; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties _property; + + /// Properties of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties()); set => this._property = value; } + + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).ProvisioningState; } + + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? State { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).DnsSecurityRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)Property).DnsSecurityRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } + + /// Creates an new instance. + public DnsSecurityRule() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// 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) + { + await eventListener.AssertNotNull(nameof(__trackedResource), __trackedResource); + await eventListener.AssertObjectIsValid(nameof(__trackedResource), __trackedResource); + } + } + /// Describes a DNS security rule. + public partial interface IDnsSecurityRule : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource + { + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// ETag of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"ETag of the DNS security rule.", + SerializedName = @"etag", + PossibleTypes = new [] { typeof(string) })] + string Etag { get; } + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int Priority { get; set; } + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? State { get; set; } + + } + /// Describes a DNS security rule. + internal partial interface IDnsSecurityRuleInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal + { + /// The action to take on DNS requests that match the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// ETag of the DNS security rule. + string Etag { get; set; } + /// The priority of the DNS security rule. + int Priority { get; set; } + /// Properties of the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties Property { get; set; } + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + /// The state of DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? State { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.json.cs new file mode 100644 index 000000000000..8eaf633a605a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRule.json.cs @@ -0,0 +1,115 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS security rule. + public partial class DnsSecurityRule + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRule(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleProperties.FromJson(__jsonProperties) : Property;} + {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRule(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + __trackedResource?.ToJson(container, serializationMode); + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.PowerShell.cs new file mode 100644 index 000000000000..5c75029fed06 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.PowerShell.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// The action to take on DNS requests that match the DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleActionTypeConverter))] + public partial class DnsSecurityRuleAction + { + + /// + /// 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.Api20230701Preview.IDnsSecurityRuleAction DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRuleAction(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.Api20230701Preview.IDnsSecurityRuleAction DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRuleAction(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRuleAction(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("BlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).BlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("BlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).BlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRuleAction(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("BlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).BlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("BlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)this).BlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + 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.Api20230701Preview.IDnsSecurityRuleAction 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 action to take on DNS requests that match the DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleActionTypeConverter))] + public partial interface IDnsSecurityRuleAction + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.TypeConverter.cs new file mode 100644 index 000000000000..697eb9c7c3e3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRuleActionTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsSecurityRuleAction ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRuleAction.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRuleAction.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRuleAction.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.cs new file mode 100644 index 000000000000..1baef35b6e74 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.cs @@ -0,0 +1,68 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The action to take on DNS requests that match the DNS security rule. + public partial class DnsSecurityRuleAction : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? _actionType; + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => this._actionType; set => this._actionType = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? _blockResponseCode; + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? BlockResponseCode { get => this._blockResponseCode; set => this._blockResponseCode = value; } + + /// Creates an new instance. + public DnsSecurityRuleAction() + { + + } + } + /// The action to take on DNS requests that match the DNS security rule. + public partial interface IDnsSecurityRuleAction : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? BlockResponseCode { get; set; } + + } + /// The action to take on DNS requests that match the DNS security rule. + internal partial interface IDnsSecurityRuleActionInternal + + { + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? BlockResponseCode { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.json.cs new file mode 100644 index 000000000000..09bf444268a4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleAction.json.cs @@ -0,0 +1,110 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The action to take on DNS requests that match the DNS security rule. + public partial class DnsSecurityRuleAction + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRuleAction(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)ActionType;} + {_blockResponseCode = If( json?.PropertyT("blockResponseCode"), out var __jsonBlockResponseCode) ? (string)__jsonBlockResponseCode : (string)BlockResponseCode;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleAction(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._actionType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._actionType.ToString()) : null, "actionType" ,container.Add ); + AddIf( null != (((object)this._blockResponseCode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._blockResponseCode.ToString()) : null, "blockResponseCode" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.PowerShell.cs new file mode 100644 index 000000000000..8895be3ba09c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.PowerShell.cs @@ -0,0 +1,156 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleListResultTypeConverter))] + public partial class DnsSecurityRuleListResult + { + + /// + /// 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.Api20230701Preview.IDnsSecurityRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRuleListResult(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.Api20230701Preview.IDnsSecurityRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRuleListResult(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRuleListResult(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.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)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 DnsSecurityRuleListResult(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.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal)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.Api20230701Preview.IDnsSecurityRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRuleListResultTypeConverter))] + public partial interface IDnsSecurityRuleListResult + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.TypeConverter.cs new file mode 100644 index 000000000000..c94c2cbb337d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRuleListResultTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsSecurityRuleListResult ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRuleListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRuleListResult.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRuleListResult.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.cs new file mode 100644 index 000000000000..900a2c4c6e85 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.cs @@ -0,0 +1,73 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// + public partial class DnsSecurityRuleListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal + { + + /// Internal Acessors for NextLink + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + + /// Backing field for property. + private string _nextLink; + + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string NextLink { get => this._nextLink; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[] _value; + + /// Enumeration of the DNS security rules. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[] Value { get => this._value; set => this._value = value; } + + /// Creates an new instance. + public DnsSecurityRuleListResult() + { + + } + } + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + public partial interface IDnsSecurityRuleListResult : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The continuation token for the next page of results. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The continuation token for the next page of results.", + SerializedName = @"nextLink", + PossibleTypes = new [] { typeof(string) })] + string NextLink { get; } + /// Enumeration of the DNS security rules. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Enumeration of the DNS security rules.", + SerializedName = @"value", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[] Value { get; set; } + + } + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + internal partial interface IDnsSecurityRuleListResultInternal + + { + /// The continuation token for the next page of results. + string NextLink { get; set; } + /// Enumeration of the DNS security rules. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule[] Value { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.json.cs new file mode 100644 index 000000000000..3610612983cc --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleListResult.json.cs @@ -0,0 +1,123 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The response to an enumeration operation on DNS security rules within a DNS resolver policy. + /// + public partial class DnsSecurityRuleListResult + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRuleListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + 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.Api20230701Preview.IDnsSecurityRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleListResult(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (null != this._value) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._value ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("value",__w); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.PowerShell.cs new file mode 100644 index 000000000000..74d1ae40cf1c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.PowerShell.cs @@ -0,0 +1,202 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a DNS security rule for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchTypeConverter))] + public partial class DnsSecurityRulePatch + { + + /// + /// 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.Api20230701Preview.IDnsSecurityRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRulePatch(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.Api20230701Preview.IDnsSecurityRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRulePatch(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRulePatch(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.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRulePatch(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.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + 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.Api20230701Preview.IDnsSecurityRulePatch 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 security rule for PATCH operation. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchTypeConverter))] + public partial interface IDnsSecurityRulePatch + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.TypeConverter.cs new file mode 100644 index 000000000000..efcea9e6e34a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulePatchTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsSecurityRulePatch ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRulePatch.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRulePatch.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRulePatch.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.cs new file mode 100644 index 000000000000..c09df013621c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.cs @@ -0,0 +1,138 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS security rule for PATCH operation. + public partial class DnsSecurityRulePatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal + { + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionBlockResponseCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionBlockResponseCode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); } + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsResolverDomainList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsResolverDomainList = value ?? null /* arrayOf */; } + + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsSecurityRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).DnsSecurityRuleState = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Action = value; } + + /// Internal Acessors for Property + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties()); set { {_property = value;} } } + + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public int? Priority { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Priority; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)Property).Priority = value ?? default(int); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties _property; + + /// Updatable properties of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties()); set => this._property = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags _tag; + + /// Tags for DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags()); set => this._tag = value; } + + /// Creates an new instance. + public DnsSecurityRulePatch() + { + + } + } + /// Describes a DNS security rule for PATCH operation. + public partial interface IDnsSecurityRulePatch : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int? Priority { get; set; } + /// Tags for DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Tags for DNS security rule.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get; set; } + + } + /// Describes a DNS security rule for PATCH operation. + internal partial interface IDnsSecurityRulePatchInternal + + { + /// The action to take on DNS requests that match the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + int? Priority { get; set; } + /// Updatable properties of the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties Property { get; set; } + /// Tags for DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.json.cs new file mode 100644 index 000000000000..5d7ec28a5881 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatch.json.cs @@ -0,0 +1,110 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Describes a DNS security rule for PATCH operation. + public partial class DnsSecurityRulePatch + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRulePatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchProperties.FromJson(__jsonProperties) : Property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags.FromJson(__jsonTags) : Tag;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatch(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); + 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; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.PowerShell.cs new file mode 100644 index 000000000000..93a293208e8b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.PowerShell.cs @@ -0,0 +1,186 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the updatable properties of a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchPropertiesTypeConverter))] + public partial class DnsSecurityRulePatchProperties + { + + /// + /// 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.Api20230701Preview.IDnsSecurityRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRulePatchProperties(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.Api20230701Preview.IDnsSecurityRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRulePatchProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRulePatchProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRulePatchProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority = (int?) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + 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.Api20230701Preview.IDnsSecurityRulePatchProperties 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(); + } + /// Represents the updatable properties of a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchPropertiesTypeConverter))] + public partial interface IDnsSecurityRulePatchProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.TypeConverter.cs new file mode 100644 index 000000000000..90ea9e95a7bb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.TypeConverter.cs @@ -0,0 +1,148 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulePatchPropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsSecurityRulePatchProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRulePatchProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRulePatchProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRulePatchProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.cs new file mode 100644 index 000000000000..f2b4a1ac822c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.cs @@ -0,0 +1,125 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the updatable properties of a DNS security rule. + public partial class DnsSecurityRulePatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction _action; + + /// The action to take on DNS requests that match the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction()); set => this._action = value; } + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).BlockResponseCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).BlockResponseCode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); } + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] _dnsResolverDomainList; + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => this._dnsResolverDomainList; set => this._dnsResolverDomainList = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? _dnsSecurityRuleState; + + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => this._dnsSecurityRuleState; set => this._dnsSecurityRuleState = value; } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchPropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction()); set { {_action = value;} } } + + /// Backing field for property. + private int? _priority; + + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public int? Priority { get => this._priority; set => this._priority = value; } + + /// Creates an new instance. + public DnsSecurityRulePatchProperties() + { + + } + } + /// Represents the updatable properties of a DNS security rule. + public partial interface IDnsSecurityRulePatchProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int? Priority { get; set; } + + } + /// Represents the updatable properties of a DNS security rule. + internal partial interface IDnsSecurityRulePatchPropertiesInternal + + { + /// The action to take on DNS requests that match the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + int? Priority { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.json.cs new file mode 100644 index 000000000000..f4ece5e50111 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchProperties.json.cs @@ -0,0 +1,122 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the updatable properties of a DNS security rule. + public partial class DnsSecurityRulePatchProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRulePatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction.FromJson(__jsonAction) : Action;} + {_dnsResolverDomainList = If( json?.PropertyT("dnsResolverDomainLists"), out var __jsonDnsResolverDomainLists) ? If( __jsonDnsResolverDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverDomainList;} + {_dnsSecurityRuleState = If( json?.PropertyT("dnsSecurityRuleState"), out var __jsonDnsSecurityRuleState) ? (string)__jsonDnsSecurityRuleState : (string)DnsSecurityRuleState;} + {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int?)__jsonPriority : Priority;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatchProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._action ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._action.ToJson(null,serializationMode) : null, "action" ,container.Add ); + if (null != this._dnsResolverDomainList) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._dnsResolverDomainList ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("dnsResolverDomainLists",__w); + } + AddIf( null != (((object)this._dnsSecurityRuleState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleState.ToString()) : null, "dnsSecurityRuleState" ,container.Add ); + AddIf( null != this._priority ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNumber((int)this._priority) : null, "priority" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.PowerShell.cs new file mode 100644 index 000000000000..9ffb2b7777a4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.PowerShell.cs @@ -0,0 +1,142 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Tags for DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchTagsTypeConverter))] + public partial class DnsSecurityRulePatchTags + { + + /// + /// 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.Api20230701Preview.IDnsSecurityRulePatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRulePatchTags(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.Api20230701Preview.IDnsSecurityRulePatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRulePatchTags(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRulePatchTags(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRulePatchTags(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + // this type is a dictionary; copy elements from source to here. + CopyFrom(content); + 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.Api20230701Preview.IDnsSecurityRulePatchTags 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(); + } + /// Tags for DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePatchTagsTypeConverter))] + public partial interface IDnsSecurityRulePatchTags + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.TypeConverter.cs new file mode 100644 index 000000000000..8cb3fee425d0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulePatchTagsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsSecurityRulePatchTags ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRulePatchTags.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRulePatchTags.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRulePatchTags.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.cs new file mode 100644 index 000000000000..49582ebd1adb --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS security rule. + public partial class DnsSecurityRulePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTagsInternal + { + + /// Creates an new instance. + public DnsSecurityRulePatchTags() + { + + } + } + /// Tags for DNS security rule. + public partial interface IDnsSecurityRulePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + + } + /// Tags for DNS security rule. + internal partial interface IDnsSecurityRulePatchTagsInternal + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.dictionary.cs new file mode 100644 index 000000000000..7cc452abc0d9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.dictionary.cs @@ -0,0 +1,75 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + public partial class DnsSecurityRulePatchTags : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray + { + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + + int Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + + public string this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + + /// + /// + public void Add(global::System.String key, string value) => __additionalProperties.Add( key, value); + + public void Clear() => __additionalProperties.Clear(); + + /// + public bool ContainsKey(global::System.String key) => __additionalProperties.ContainsKey( key); + + /// + public void CopyFrom(global::System.Collections.IDictionary source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public void CopyFrom(global::System.Management.Automation.PSObject source) + { + if (null != source) + { + foreach( var property in Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.TypeConverterExtensions.GetFilteredProperties(source, new global::System.Collections.Generic.HashSet() { } ) ) + { + if ((null != property.Key && null != property.Value)) + { + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + } + } + } + } + + /// + public bool Remove(global::System.String key) => __additionalProperties.Remove( key); + + /// + /// + public bool TryGetValue(global::System.String key, out string value) => __additionalProperties.TryGetValue( key, out value); + + /// + + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatchTags source) => source.__additionalProperties; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.json.cs new file mode 100644 index 000000000000..93f9d8890e29 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRulePatchTags.json.cs @@ -0,0 +1,109 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Tags for DNS security rule. + public partial class DnsSecurityRulePatchTags + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + /// + internal DnsSecurityRulePatchTags(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, global::System.Collections.Generic.HashSet exclusions = null) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, null ,exclusions ); + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRulePatchTags(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IAssociativeArray)this).AdditionalProperties, container); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.PowerShell.cs new file mode 100644 index 000000000000..6921dfabb5a4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.PowerShell.cs @@ -0,0 +1,194 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Represents the properties of a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePropertiesTypeConverter))] + public partial class DnsSecurityRuleProperties + { + + /// + /// 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.Api20230701Preview.IDnsSecurityRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DnsSecurityRuleProperties(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.Api20230701Preview.IDnsSecurityRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DnsSecurityRuleProperties(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DnsSecurityRuleProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DnsSecurityRuleProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Action")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Action, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleActionTypeConverter.ConvertFrom); + } + if (content.Contains("Priority")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Priority = (int) content.GetValueForProperty("Priority",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).Priority, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("DnsResolverDomainList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("DnsResolverDomainList",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsResolverDomainList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); + } + if (content.Contains("DnsSecurityRuleState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState?) content.GetValueForProperty("DnsSecurityRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).DnsSecurityRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("ActionType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType?) content.GetValueForProperty("ActionType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType.CreateFrom); + } + if (content.Contains("ActionBlockResponseCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionBlockResponseCode = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode?) content.GetValueForProperty("ActionBlockResponseCode",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal)this).ActionBlockResponseCode, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode.CreateFrom); + } + 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.Api20230701Preview.IDnsSecurityRuleProperties 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(); + } + /// Represents the properties of a DNS security rule. + [System.ComponentModel.TypeConverter(typeof(DnsSecurityRulePropertiesTypeConverter))] + public partial interface IDnsSecurityRuleProperties + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.TypeConverter.cs new file mode 100644 index 000000000000..e222b959ee27 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DnsSecurityRulePropertiesTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api20230701Preview.IDnsSecurityRuleProperties ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DnsSecurityRuleProperties.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DnsSecurityRuleProperties.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DnsSecurityRuleProperties.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.cs new file mode 100644 index 000000000000..1b62b5de8c65 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.cs @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS security rule. + public partial class DnsSecurityRuleProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction _action; + + /// The action to take on DNS requests that match the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction()); set => this._action = value; } + + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).BlockResponseCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).BlockResponseCode = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); } + + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).ActionType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleActionInternal)Action).ActionType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] _dnsResolverDomainList; + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => this._dnsResolverDomainList; set => this._dnsResolverDomainList = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? _dnsSecurityRuleState; + + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get => this._dnsSecurityRuleState; set => this._dnsSecurityRuleState = value; } + + /// Internal Acessors for Action + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal.Action { get => (this._action = this._action ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction()); set { {_action = value;} } } + + /// Internal Acessors for ProvisioningState + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + + /// Backing field for property. + private int _priority; + + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public int Priority { get => this._priority; set => this._priority = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; + + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => this._provisioningState; } + + /// Creates an new instance. + public DnsSecurityRuleProperties() + { + + } + } + /// Represents the properties of a DNS security rule. + public partial interface IDnsSecurityRuleProperties : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The response code for block actions. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + int Priority { get; set; } + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value will be ignored.", + SerializedName = @"provisioningState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } + + } + /// Represents the properties of a DNS security rule. + internal partial interface IDnsSecurityRulePropertiesInternal + + { + /// The action to take on DNS requests that match the DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleAction Action { get; set; } + /// The response code for block actions. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode? ActionBlockResponseCode { get; set; } + /// The type of action to take. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType? ActionType { get; set; } + /// DNS resolver policy domains lists that the DNS security rule applies to. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get; set; } + /// The state of DNS security rule. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState? DnsSecurityRuleState { get; set; } + /// The priority of the DNS security rule. + int Priority { get; set; } + /// + /// The current provisioning state of the DNS security rule. This is a read-only property and any attempt to set this value + /// will be ignored. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.json.cs new file mode 100644 index 000000000000..3979b961672e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/DnsSecurityRuleProperties.json.cs @@ -0,0 +1,127 @@ +// 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.Api20230701Preview +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// Represents the properties of a DNS security rule. + public partial class DnsSecurityRuleProperties + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal DnsSecurityRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRuleAction.FromJson(__jsonAction) : Action;} + {_priority = If( json?.PropertyT("priority"), out var __jsonPriority) ? (int)__jsonPriority : Priority;} + {_dnsResolverDomainList = If( json?.PropertyT("dnsResolverDomainLists"), out var __jsonDnsResolverDomainLists) ? If( __jsonDnsResolverDomainLists as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : DnsResolverDomainList;} + {_dnsSecurityRuleState = If( json?.PropertyT("dnsSecurityRuleState"), out var __jsonDnsSecurityRuleState) ? (string)__jsonDnsSecurityRuleState : (string)DnsSecurityRuleState;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new DnsSecurityRuleProperties(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._action ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._action.ToJson(null,serializationMode) : null, "action" ,container.Add ); + AddIf( (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNumber(this._priority), "priority" ,container.Add ); + if (null != this._dnsResolverDomainList) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._dnsResolverDomainList ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("dnsResolverDomainLists",__w); + } + AddIf( null != (((object)this._dnsSecurityRuleState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleState.ToString()) : null, "dnsSecurityRuleState" ,container.Add ); + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.PowerShell.cs new file mode 100644 index 000000000000..5ac866b2b859 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.PowerShell.cs @@ -0,0 +1,272 @@ +// 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.Api20230701Preview +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// Describes a forwarding rule within a DNS forwarding ruleset. + [System.ComponentModel.TypeConverter(typeof(ForwardingRuleTypeConverter))] + public partial class ForwardingRule + { + + /// + /// 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.Api20230701Preview.IForwardingRule DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ForwardingRule(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.Api20230701Preview.IForwardingRule DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ForwardingRule(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ForwardingRule(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.Api20230701Preview.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("TargetDnsServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); + } + if (content.Contains("Metadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ForwardingRule(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.Api20230701Preview.IForwardingRuleInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("TargetDnsServer")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); + } + if (content.Contains("Metadata")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); + } + if (content.Contains("State")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); + } + 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.Api20230701Preview.IForwardingRule 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 forwarding rule within a DNS forwarding ruleset. + [System.ComponentModel.TypeConverter(typeof(ForwardingRuleTypeConverter))] + public partial interface IForwardingRule + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.TypeConverter.cs index 25862c567610..fbbc3159124a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.cs similarity index 53% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.cs index 0d5b29727e43..ae29326ee322 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IForwardingRule, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); /// The domain name for the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)Property).DomainName = value ; } + public string DomainName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).DomainName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).DomainName = value ; } /// Backing field for property. private string _etag; @@ -30,98 +30,97 @@ public partial class ForwardingRule : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } /// Metadata attached to the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - 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; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } /// 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; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRuleProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IForwardingRulePropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// 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.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 ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)Property).TargetDnsServer = value ; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } /// Creates an new instance. public ForwardingRule() @@ -144,7 +143,7 @@ public ForwardingRule() /// Describes a forwarding rule within a DNS forwarding ruleset. public partial interface IForwardingRule : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource { /// The domain name for the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -168,8 +167,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.Api20220701.IForwardingRulePropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. @@ -189,76 +188,28 @@ public partial interface IForwardingRule : SerializedName = @"forwardingRuleState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get; set; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - 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 = true, ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } /// Describes a forwarding rule within a DNS forwarding ruleset. internal partial interface IForwardingRuleInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal { /// The domain name for the forwarding rule. string DomainName { get; set; } /// ETag of the forwarding rule. string Etag { get; set; } /// Metadata attached to the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get; set; } /// Properties of the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. @@ -266,22 +217,8 @@ internal partial interface IForwardingRuleInternal : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The state of forwarding rule. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState? State { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// 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.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRule.json.cs index ab26d7858a62..5341577abb0f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRule.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,21 +65,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.Api20220701.ForwardingRuleProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.PowerShell.cs similarity index 74% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.PowerShell.cs index fecd00625934..5d294416bc65 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,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.Api20220701.IForwardingRuleListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRuleListResult(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,17 +100,17 @@ internal ForwardingRuleListResult(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("Value")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,11 +125,11 @@ internal ForwardingRuleListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRuleTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -139,7 +139,7 @@ internal ForwardingRuleListResult(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.TypeConverter.cs index dbed8bcfc0a3..32c2d5043dc0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.cs index 9058b6b7d1a2..4d6d19e1d064 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The response to an enumeration operation on forwarding rules within a DNS forwarding ruleset. /// public partial class ForwardingRuleListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRule[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRule[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRule) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRule[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleListResult.json.cs index 621ad3a09fcf..2357c3ffd7d4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -67,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.Api20220701.IForwardingRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IForwardingRule) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRuleListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.PowerShell.cs similarity index 62% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.PowerShell.cs index 0edcbcf13cb1..5638eece3bee 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,33 +55,35 @@ public partial class ForwardingRulePatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatch(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,25 +98,25 @@ internal ForwardingRulePatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("TargetDnsServer")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,19 +131,19 @@ internal ForwardingRulePatch(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("TargetDnsServer")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -151,7 +153,7 @@ internal ForwardingRulePatch(global::System.Management.Automation.PSObject conte /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.TypeConverter.cs index ec1c813abb92..244d5fdc1d1d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.cs similarity index 65% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.cs index 15b050567681..6f02328b4620 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IForwardingRulePatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).ForwardingRuleState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.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 */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Property - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.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 */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)Property).TargetDnsServer; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// Updatable properties of the forwarding rule. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties Property { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatch.json.cs index fbc49b63d9d0..18a509ccfd19 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -65,18 +65,18 @@ internal ForwardingRulePatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.PowerShell.cs similarity index 65% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.PowerShell.cs index 4e62fd755403..a0fa386bc334 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,35 +57,35 @@ public partial class ForwardingRulePatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatchProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -100,21 +100,21 @@ internal ForwardingRulePatchProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,15 +129,15 @@ internal ForwardingRulePatchProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("TargetDnsServer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } AfterDeserializePSObject(content); } @@ -147,7 +147,7 @@ internal ForwardingRulePatchProperties(global::System.Management.Automation.PSOb /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.TypeConverter.cs index ed4845501c0c..866bea906daf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.cs similarity index 80% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.cs index c9478ca22310..bdfd18b674ea 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// Represents the updatable properties of a forwarding rule within a DNS forwarding ruleset. /// public partial class ForwardingRulePatchProperties : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatchPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata()); set => this._metadata = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] _targetDnsServer; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get; set; } /// DNS servers to forward the DNS query to. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.json.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchProperties.json.cs index 6a359ba8885b..48a1f73e4653 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -67,20 +67,20 @@ internal ForwardingRulePatchProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsRes { return; } - {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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;} + {_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.Api20230701Preview.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.PowerShell.cs index 4f5d758850c4..6ea724f07c20 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRulePatchPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePatchPropertiesMetadata(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal ForwardingRulePatchPropertiesMetadata(global::System.Collections.IDicti } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,7 +128,7 @@ internal ForwardingRulePatchPropertiesMetadata(global::System.Management.Automat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs index 5d01952195ed..bd3a69776660 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.cs index a38682dda835..baa4b853afd5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IForwardingRulePatchPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.dictionary.cs index ef6a62a8b40d..fc007f93cae5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.ForwardingRulePatchPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatchPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePatchPropertiesMetadata.json.cs index 10d8ec48d8c1..1e371ce12512 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePatchPropertiesMetadata.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ForwardingRulePatchPropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlet } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.PowerShell.cs similarity index 60% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.PowerShell.cs index 3109ec11654c..6d5b8a796acb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRuleProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRuleProperties(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,29 +98,29 @@ internal ForwardingRuleProperties(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,23 +135,23 @@ internal ForwardingRuleProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DomainName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).DomainName, global::System.Convert.ToString); } if (content.Contains("TargetDnsServer")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[]) content.GetValueForProperty("TargetDnsServer",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).TargetDnsServer, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServerTypeConverter.ConvertFrom)); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ForwardingRuleState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState?) content.GetValueForProperty("ForwardingRuleState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ForwardingRuleState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ForwardingRuleState.CreateFrom); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } AfterDeserializePSObject(content); } @@ -161,7 +161,7 @@ internal ForwardingRuleProperties(global::System.Management.Automation.PSObject /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.TypeConverter.cs index 05157078349f..d5923b68f1c8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.cs index 2da9c297d2ee..c2bfc1adee2b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IForwardingRuleProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata()); set => this._metadata = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ITargetDnsServer[] _targetDnsServer; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ITargetDnsServer[] TargetDnsServer { get => this._targetDnsServer; set => this._targetDnsServer = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ITargetDnsServer) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ITargetDnsServer[] TargetDnsServer { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRuleProperties.json.cs index 380dcd23d006..c4c825112ec3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRuleProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -66,21 +66,21 @@ internal ForwardingRuleProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver return; } {_domainName = If( json?.PropertyT("domainName"), out var __jsonDomainName) ? (string)__jsonDomainName : (string)DomainName;} - {_targetDnsServer = If( json?.PropertyT("targetDnsServers"), out var __jsonTargetDnsServers) ? If( __jsonTargetDnsServers as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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;} + {_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.Api20230701Preview.ITargetDnsServer) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer.FromJson(__u) )) ))() : null : TargetDnsServer;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRuleProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.PowerShell.cs index bf0596f1c88f..0b62c07bf140 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class ForwardingRulePropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IForwardingRulePropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ForwardingRulePropertiesMetadata(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,7 +102,7 @@ internal ForwardingRulePropertiesMetadata(global::System.Collections.IDictionary } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,7 +125,7 @@ internal ForwardingRulePropertiesMetadata(global::System.Management.Automation.P /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.TypeConverter.cs index 9c63a6f8a72a..bb31a2f9e1c2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.cs index 78199ba9c653..b123c2745ee0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IForwardingRulePropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.dictionary.cs index cbd2c3ad4654..20697bfd4994 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.ForwardingRulePropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/ForwardingRulePropertiesMetadata.json.cs index b8d2fbac064c..9f8d63de3af8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/ForwardingRulePropertiesMetadata.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ForwardingRulePropertiesMetadata(Microsoft.Azure.PowerShell.Cmdlets.Dns } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.PowerShell.cs similarity index 68% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.PowerShell.cs index 91dbeb3d4191..520df3676df5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class IPConfiguration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IPConfiguration(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,25 +103,25 @@ internal IPConfiguration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("PrivateIPAddress")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("SubnetId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,19 +136,19 @@ internal IPConfiguration(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("PrivateIPAddress")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAddress = (string) content.GetValueForProperty("PrivateIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAddress, global::System.Convert.ToString); } if (content.Contains("PrivateIPAllocationMethod")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod?) content.GetValueForProperty("PrivateIPAllocationMethod",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).PrivateIPAllocationMethod, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod.CreateFrom); } if (content.Contains("SubnetId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.TypeConverter.cs index 106c1f343565..ee66d323b996 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.cs index b8c055b37d37..43b268c385d6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// IP configuration. public partial class IPConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal { /// Internal Acessors for Subnet - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfigurationInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)Subnet).Id = value ; } /// Creates an new instance. public IPConfiguration() @@ -86,7 +86,7 @@ internal partial interface IIPConfigurationInternal /// Private IP address allocation method. Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.IPAllocationMethod? PrivateIPAllocationMethod { get; set; } /// The reference to the subnet bound to the IP configuration. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/IPConfiguration.json.cs index 56ac268f77eb..5d38b4e6424b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/IPConfiguration.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class IPConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new IPConfiguration(json) : null; } @@ -77,7 +77,7 @@ internal IPConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.PowerShell.cs similarity index 52% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.PowerShell.cs index 06a0f51cf7e0..7f497657d194 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class InboundEndpoint partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpoint(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IInboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,77 +103,77 @@ internal InboundEndpoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("IPConfiguration")) + if (content.Contains("Tag")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("IPConfiguration")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfigurationTypeConverter.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. @@ -188,71 +188,71 @@ internal InboundEndpoint(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("IPConfiguration")) + if (content.Contains("Tag")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("IPConfiguration")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfigurationTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.TypeConverter.cs index 8d1d021e28ee..6784ce120c3c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.cs similarity index 52% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.cs index 68955f6a0e07..014d3b5dd748 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IInboundEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); /// Backing field for property. private string _etag; @@ -28,104 +28,103 @@ 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.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 ; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).IPConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).IPConfiguration = value ; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - 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; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - 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; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } /// 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; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)Property).ResourceGuid; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public InboundEndpoint() @@ -148,7 +147,7 @@ public InboundEndpoint() /// Describes an inbound endpoint for a DNS resolver. public partial interface IInboundEndpoint : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource { /// ETag of the inbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -164,8 +163,8 @@ public partial interface IInboundEndpoint : ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. @@ -185,66 +184,18 @@ public partial interface IInboundEndpoint : SerializedName = @"resourceGuid", PossibleTypes = new [] { typeof(string) })] string ResourceGuid { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// Describes an inbound endpoint for a DNS resolver. internal partial interface IInboundEndpointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal { /// ETag of the inbound endpoint. string Etag { get; set; } /// IP configurations for the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get; set; } /// Properties of the inbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. @@ -252,20 +203,6 @@ internal partial interface IInboundEndpointInternal : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } /// The resourceGuid property of the inbound endpoint resource. string ResourceGuid { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpoint.json.cs index 100bd3aca65d..80eddf1d5b76 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpoint.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpoint(json) : null; } @@ -77,9 +77,8 @@ 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.Api20220701.InboundEndpointProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.PowerShell.cs index aa483c0fea7c..99690e33bbde 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,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.Api20220701.IInboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointListResult(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IInboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -107,17 +107,17 @@ internal InboundEndpointListResult(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Value")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,11 +132,11 @@ internal InboundEndpointListResult(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Value")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.TypeConverter.cs index 660f5bbc3ef9..739e37c7c056 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.cs index fe36b79cf76c..9fa737411d38 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The response to an enumeration operation on inbound endpoints for a DNS resolver. /// public partial class InboundEndpointListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointListResult.json.cs index a8766060badf..5f7d96eb03bc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,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.Api20220701.IInboundEndpointListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointListResult(json) : null; } @@ -79,7 +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.Api20220701.IInboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IInboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.PowerShell.cs similarity index 79% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.PowerShell.cs index 40214fdbe0ad..1c5e99c27463 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class InboundEndpointPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointPatch(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IInboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +105,13 @@ internal InboundEndpointPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +126,7 @@ internal InboundEndpointPatch(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.TypeConverter.cs index 56e41f4a9c33..4b2bb23f1187 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.cs index 96109ecd9d4a..bbf21cd1af0f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IInboundEndpointPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatch.json.cs index 6cfa6e30f9b0..ed848745cb51 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointPatch(json) : null; } @@ -77,7 +77,7 @@ internal InboundEndpointPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Run { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.PowerShell.cs index 7950b70fd88c..ce0e2079b34d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InboundEndpointPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointPatchTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IInboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal InboundEndpointPatchTags(global::System.Collections.IDictionary content } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.TypeConverter.cs index 3b00551788cf..533e4e140660 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.cs index 335f0660f9ee..e3d9f5fe10e1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for inbound endpoint. public partial class InboundEndpointPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.dictionary.cs index e346575d7026..dbd0b6c3cc17 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.InboundEndpointPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointPatchTags.json.cs index 3b722d43f8a0..9806755dc34f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointPatchTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointPatchTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.PowerShell.cs similarity index 68% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.PowerShell.cs index b0bf1326c1f6..f85ef9fd17f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class InboundEndpointProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new InboundEndpointProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IInboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,21 +105,21 @@ internal InboundEndpointProperties(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,15 +134,15 @@ internal InboundEndpointProperties(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("IPConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[]) content.GetValueForProperty("IPConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).IPConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.TypeConverter.cs index bd2d972667e8..888de735aed6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.cs index ca3df8faa80b..1c12959628bf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IInboundEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] _iPConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IIPConfiguration[] IPConfiguration { get => this._iPConfiguration; set => this._iPConfiguration = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IInboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? _provisioningState; @@ -59,8 +59,8 @@ public partial interface IInboundEndpointProperties : ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IIPConfiguration[] IPConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/InboundEndpointProperties.json.cs index 154618a5f5e8..c94730d734fb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/InboundEndpointProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class InboundEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new InboundEndpointProperties(json) : null; } @@ -77,7 +77,7 @@ internal InboundEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolve { return; } - {_iPConfiguration = If( json?.PropertyT("ipConfigurations"), out var __jsonIPConfigurations) ? If( __jsonIPConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IIPConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.PowerShell.cs similarity index 52% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.PowerShell.cs index 12a7165208ca..18b5cfe509b3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class OutboundEndpoint partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpoint(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IOutboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,81 +105,81 @@ internal OutboundEndpoint(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Subnet")) + if (content.Contains("Tag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Subnet")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("SubnetId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -192,75 +194,75 @@ internal OutboundEndpoint(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("Tag")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Location")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemData")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("ResourceGuid")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("Name")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("Type")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Subnet")) + if (content.Contains("Tag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Location")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).ResourceGuid, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Subnet")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("SubnetId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.TypeConverter.cs index 861feecc7d0b..82999ddb7d53 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.cs similarity index 51% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.cs index 4b0e6c37d8c7..0c26ef2d9d8f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IOutboundEndpoint, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(); /// Backing field for property. private string _etag; @@ -27,108 +27,107 @@ public partial class OutboundEndpoint : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Location = value ; } - - /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Id = value; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Name = value; } - - /// Internal Acessors for Type - 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; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for ResourceGuid - 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; } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).ResourceGuid = value; } /// Internal Acessors for Subnet - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointInternal.Subnet { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).Subnet; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).Subnet = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name = value; } /// Internal Acessors for SystemData - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type = value; } /// 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; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointPropertiesInternal)Property).ResourceGuid; } + public string ResourceGuid { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal)Property).SubnetId = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).SubnetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)Property).SubnetId = value ; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// Resource tags. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__trackedResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__trackedResource).Type; } /// Creates an new instance. public OutboundEndpoint() @@ -151,7 +150,7 @@ public OutboundEndpoint() /// Describes an outbound endpoint for a DNS resolver. public partial interface IOutboundEndpoint : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource { /// ETag of the outbound endpoint. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -188,64 +187,16 @@ public partial interface IOutboundEndpoint : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string SubnetId { get; set; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } /// Describes an outbound endpoint for a DNS resolver. internal partial interface IOutboundEndpointInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal { /// ETag of the outbound endpoint. string Etag { get; set; } /// Properties of the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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,23 +205,9 @@ 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.Api20220701.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpoint.json.cs index 9a9485ed02bc..408d971896f7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpoint.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpoint partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpoint(json) : null; } @@ -77,9 +77,8 @@ 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.Api20220701.OutboundEndpointProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } @@ -106,10 +105,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __trackedResource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.PowerShell.cs index 97109d7435dc..d2429f0e3f26 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,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.Api20220701.IOutboundEndpointListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointListResult(content); } @@ -89,10 +89,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IOutboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -107,17 +107,17 @@ internal OutboundEndpointListResult(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,11 +132,11 @@ internal OutboundEndpointListResult(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.TypeConverter.cs index 463f74582d3a..01c0df8a2822 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.cs index 5d7c9153390e..8384c720e55e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The response to an enumeration operation on outbound endpoints for a DNS resolver. /// public partial class OutboundEndpointListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpoint[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpoint[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpoint) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpoint[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointListResult.json.cs index 81dd90bc649c..93e3816b5ea8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,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.Api20220701.IOutboundEndpointListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointListResult(json) : null; } @@ -79,7 +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.Api20220701.IOutboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IOutboundEndpoint) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.PowerShell.cs similarity index 79% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.PowerShell.cs index 176e4f48ed55..dc00cb8d97d1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class OutboundEndpointPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointPatch(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IOutboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +105,13 @@ internal OutboundEndpointPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +126,7 @@ internal OutboundEndpointPatch(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.TypeConverter.cs index b512d1281e41..20f22680ff28 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.cs index c7ee4173f585..7fb4d06d6923 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IOutboundEndpointPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointPatchTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointPatchTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatch.json.cs index d7253c3bc968..d37d10518e00 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointPatch(json) : null; } @@ -77,7 +77,7 @@ internal OutboundEndpointPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.PowerShell.cs similarity index 88% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.PowerShell.cs index 28f7e0a653ac..e06046ad8765 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class OutboundEndpointPatchTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointPatchTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IOutboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal OutboundEndpointPatchTags(global::System.Collections.IDictionary conten } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.TypeConverter.cs index e5bedcbc1431..eed46aa593ed 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.cs index 130257540a62..26c1f8982111 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Tags for outbound endpoint. public partial class OutboundEndpointPatchTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.dictionary.cs index 74ee8c05e364..e151082cc3ba 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.OutboundEndpointPatchTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatchTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointPatchTags.json.cs index 8bc6c526f870..8d75ab8f8bb3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointPatchTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointPatchTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.PowerShell.cs similarity index 67% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.PowerShell.cs index e28e50cc427f..b2a445c6e72c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class OutboundEndpointProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IOutboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OutboundEndpointProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IOutboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,25 +105,25 @@ internal OutboundEndpointProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -138,19 +138,19 @@ internal OutboundEndpointProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Subnet")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).Subnet = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("Subnet",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).Subnet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("ResourceGuid")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid = (string) content.GetValueForProperty("ResourceGuid",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).ResourceGuid, global::System.Convert.ToString); } if (content.Contains("SubnetId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal)this).SubnetId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.TypeConverter.cs index 0cd594336d55..0b7e651fe05a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.cs similarity index 82% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.cs index 355b502e8150..ab6b345c2fb6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IOutboundEndpointProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal { /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for ResourceGuid - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal.ResourceGuid { get => this._resourceGuid; set { {_resourceGuid = value;} } } /// Internal Acessors for Subnet - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPropertiesInternal.Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource _subnet; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._subnet = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get => (this._subnet = this._subnet ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)Subnet).Id = value ; } + public string SubnetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)Subnet).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)Subnet).Id = value ; } /// Creates an new instance. public OutboundEndpointProperties() @@ -101,7 +101,7 @@ internal partial interface IOutboundEndpointPropertiesInternal /// The resourceGuid property of the outbound endpoint resource. string ResourceGuid { get; set; } /// The reference to the subnet used for the outbound endpoint. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource Subnet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Subnet { get; set; } /// Resource ID. string SubnetId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/OutboundEndpointProperties.json.cs index ca18053f0810..b2f68b532dbb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/OutboundEndpointProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OutboundEndpointProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new OutboundEndpointProperties(json) : null; } @@ -77,7 +77,7 @@ internal OutboundEndpointProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsResolv { return; } - {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonSubnet) : Subnet;} + {_subnet = If( json?.PropertyT("subnet"), out var __jsonSubnet) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.PowerShell.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.PowerShell.cs index d481d6b924ad..53668d0d18ac 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SubResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResource(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +103,13 @@ internal SubResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +124,7 @@ internal SubResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)this).Id, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.TypeConverter.cs index 9cb243578dd2..2904d7084a8d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.cs index 555f66b0e2bf..ae7c10d8b099 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Reference to another ARM resource. public partial class SubResource : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal { /// Backing field for property. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResource.json.cs index 116e62cd5df1..5cd4c8f3e305 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResource.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SubResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.PowerShell.cs index 07055eaa2003..8e9cd0e287c8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class SubResourceListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubResourceListResult(content); } @@ -85,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.ISubResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +105,17 @@ internal SubResourceListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +130,11 @@ internal SubResourceListResult(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.TypeConverter.cs index 322c1ab9f3d8..7c01560eeedf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.cs similarity index 85% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.cs index 45f381ebacd3..5a5be08d8176 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.ISubResourceListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/SubResourceListResult.json.cs index b37106718017..da22f500090c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/SubResourceListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SubResourceListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new SubResourceListResult(json) : null; } @@ -77,7 +77,7 @@ internal SubResourceListResult(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.ISubResource) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.PowerShell.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.PowerShell.cs index 17baedeb7fb3..2fa35fb0cf33 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TargetDnsServer partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ITargetDnsServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetDnsServer(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.ITargetDnsServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal TargetDnsServer(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((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))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal TargetDnsServer(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("IPAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).IPAddress = (string) content.GetValueForProperty("IPAddress",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).IPAddress, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((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))); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.TypeConverter.cs index cc3174d9aa71..7a08c49a49e6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.cs index d318ad4f8e75..ee52bb7665d8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.ITargetDnsServer, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServerInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServerInternal { /// Backing field for property. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.json.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/TargetDnsServer.json.cs index 2b14acb7109c..af2f2a8b5c00 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/TargetDnsServer.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TargetDnsServer partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs similarity index 65% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.PowerShell.cs index 0ea253ff3a1c..3cfabcf2d565 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkDnsForwardingRuleset partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkDnsForwardingRuleset(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,25 +112,25 @@ internal VirtualNetworkDnsForwardingRuleset(global::System.Collections.IDictiona // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -145,19 +145,19 @@ internal VirtualNetworkDnsForwardingRuleset(global::System.Management.Automation // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourcePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("VirtualNetworkLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs index 5cc9eb2810c6..7ec5f0b8c122 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.cs similarity index 68% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.cs index 2b14ab7467e4..0b4e49649d8e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IVirtualNetworkDnsForwardingRuleset, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourceProperties()); set { {_property = value;} } } /// Internal Acessors for VirtualNetworkLink - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetInternal.VirtualNetworkLink { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkSubResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourceProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId = value ?? null; } + public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)Property).VirtualNetworkLinkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkSubResourceProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties Property { get; set; } /// The reference to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource VirtualNetworkLink { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetworkLink { get; set; } /// Resource ID. string VirtualNetworkLinkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRuleset.json.cs index 7d3f79c4410c..c814c1bd2355 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRuleset.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkDnsForwardingRuleset partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkDnsForwardingRuleset(json) : null; } @@ -103,7 +103,7 @@ internal VirtualNetworkDnsForwardingRuleset(Microsoft.Azure.PowerShell.Cmdlets.D { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkSubResourceProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkSubResourceProperties.FromJson(__jsonProperties) : Property;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs similarity index 71% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs index a40bb6b23b6e..5909ace4d4a8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkDnsForwardingRulesetListResult(content); } @@ -92,7 +92,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -100,7 +100,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,17 +115,17 @@ internal VirtualNetworkDnsForwardingRulesetListResult(global::System.Collections // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,11 +140,11 @@ internal VirtualNetworkDnsForwardingRulesetListResult(global::System.Management. // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRulesetTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs index e8a843a8e83d..0005fb22fdae 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.cs similarity index 83% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.cs index 41d59b7e9052..65903b09099a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,12 +11,12 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// The response to an enumeration operation on Virtual Network DNS Forwarding Ruleset. /// public partial class VirtualNetworkDnsForwardingRulesetListResult : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkDnsForwardingRuleset[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkDnsForwardingRuleset) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkDnsForwardingRulesetListResult.json.cs index dcf0c58e01ff..edf32d51200f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkDnsForwardingRulesetListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class VirtualNetworkDnsForwardingRulesetListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } @@ -118,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.Api20220701.IVirtualNetworkDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkDnsForwardingRuleset.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.PowerShell.cs similarity index 50% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.PowerShell.cs index eca5ef3d1a0e..4499180ea891 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,29 @@ public partial class VirtualNetworkLink partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new VirtualNetworkLink(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLink(content); } @@ -85,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,73 +110,73 @@ internal VirtualNetworkLink(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("SystemData")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("VirtualNetwork")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("Metadata")) + if (content.Contains("Name")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Type")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("VirtualNetwork")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Metadata")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -189,67 +191,67 @@ internal VirtualNetworkLink(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesTypeConverter.ConvertFrom); } - if (content.Contains("SystemData")) + if (content.Contains("Etag")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Etag, global::System.Convert.ToString); } - if (content.Contains("Etag")) + if (content.Contains("SystemDataCreatedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("SystemDataCreatedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("Name")) + if (content.Contains("SystemDataCreatedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("Type")) + if (content.Contains("SystemDataLastModifiedBy")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } - if (content.Contains("ProvisioningState")) + if (content.Contains("SystemDataLastModifiedByType")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } - if (content.Contains("SystemDataCreatedBy")) + if (content.Contains("SystemDataLastModifiedAt")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } - if (content.Contains("SystemDataCreatedAt")) + if (content.Contains("SystemData")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); } - if (content.Contains("VirtualNetwork")) + if (content.Contains("Id")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); } - if (content.Contains("Metadata")) + if (content.Contains("Name")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); } - if (content.Contains("SystemDataCreatedByType")) + if (content.Contains("Type")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("SystemDataLastModifiedBy")) + if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } - if (content.Contains("SystemDataLastModifiedByType")) + if (content.Contains("VirtualNetwork")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } - if (content.Contains("SystemDataLastModifiedAt")) + if (content.Contains("Metadata")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.TypeConverter.cs index 7e755ef18058..c106b48201d6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.cs similarity index 50% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.cs index 6bee450d2dce..d1204f9ed17d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.cs @@ -3,20 +3,20 @@ // Code generated by Microsoft (R) 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 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Describes a virtual network link. public partial class VirtualNetworkLink : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates { /// - /// Backing field for Inherited model + /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); /// Backing field for property. private string _etag; @@ -26,97 +26,96 @@ public partial class VirtualNetworkLink : public string Etag { get => this._etag; } /// - /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } /// Metadata attached to the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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; } - - /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Name = value; } - - /// Internal Acessors for Type - 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; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Etag - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal.Etag { get => this._etag; set { {_etag = value;} } } /// Internal Acessors for Property - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - 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; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState = value; } + + /// Internal Acessors for VirtualNetwork + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkInternal.VirtualNetwork { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetwork = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } /// Internal Acessors for SystemData - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } - /// Internal Acessors for VirtualNetwork - 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; } + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } /// 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; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).ProvisioningState; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData _systemData; - - /// Metadata pertaining to creation and last modification of the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData()); } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" /// [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal)__resource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] - public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)Property).VirtualNetworkId = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -139,7 +138,7 @@ public VirtualNetworkLink() /// Describes a virtual network link. public partial interface IVirtualNetworkLink : Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource { /// ETag of the virtual network link. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( @@ -155,8 +154,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.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. @@ -168,54 +167,6 @@ public partial interface IVirtualNetworkLink : SerializedName = @"provisioningState", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState) })] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; } - /// The timestamp of resource creation (UTC). - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource creation (UTC).", - SerializedName = @"createdAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that created the resource.", - SerializedName = @"createdBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that created the resource.", - SerializedName = @"createdByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The timestamp of resource last modification (UTC)", - SerializedName = @"lastModifiedAt", - PossibleTypes = new [] { typeof(global::System.DateTime) })] - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The identity that last modified the resource.", - SerializedName = @"lastModifiedBy", - PossibleTypes = new [] { typeof(string) })] - string SystemDataLastModifiedBy { get; set; } - /// The type of identity that last modified the resource. - [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The type of identity that last modified the resource.", - SerializedName = @"lastModifiedByType", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } /// Resource ID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, @@ -228,35 +179,21 @@ public partial interface IVirtualNetworkLink : } /// Describes a virtual network link. internal partial interface IVirtualNetworkLinkInternal : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal { /// ETag of the virtual network link. string Etag { get; set; } /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// Properties of the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties Property { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. /// Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? ProvisioningState { get; set; } - /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData SystemData { get; set; } - /// The timestamp of resource creation (UTC). - global::System.DateTime? SystemDataCreatedAt { get; set; } - /// The identity that created the resource. - string SystemDataCreatedBy { get; set; } - /// The type of identity that created the resource. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } - /// The timestamp of resource last modification (UTC) - global::System.DateTime? SystemDataLastModifiedAt { get; set; } - /// The identity that last modified the resource. - string SystemDataLastModifiedBy { get; set; } - /// 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.Api20220701.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.json.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLink.json.cs index 81318b1c9845..e6e668c4001e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLink.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLink partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } @@ -87,10 +87,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs __resource?.ToJson(container, serializationMode); AddIf( null != this._property ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._property.ToJson(null,serializationMode) : null, "properties" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) - { - AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); - } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._etag)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._etag.ToString()) : null, "etag" ,container.Add ); } @@ -110,9 +106,8 @@ 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.Api20220701.VirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkProperties.FromJson(__jsonProperties) : Property;} {_etag = If( json?.PropertyT("etag"), out var __jsonEtag) ? (string)__jsonEtag : (string)Etag;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.PowerShell.cs similarity index 73% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.PowerShell.cs index 4a3b5c1b3c59..c35bfbc39e31 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult DeserializeFromDictionary(global::System.Collections.IDictionary 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.Api20220701.IVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkListResult(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,17 +110,17 @@ internal VirtualNetworkLinkListResult(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Value")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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. @@ -135,11 +135,11 @@ internal VirtualNetworkLinkListResult(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Value")) { - ((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)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.TypeConverter.cs index 5b4ee1d339ad..b3ce6c9f3e27 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.cs index f310785ee642..e6c32ac39015 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IVirtualNetworkLinkListResult, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLink[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLink[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLink) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLink[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink[] Value { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.json.cs similarity index 91% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkListResult.json.cs index f9e9fd768a1e..8001306a9a1e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkListResult.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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; } @@ -113,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.Api20220701.IVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.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.Api20230701Preview.IVirtualNetworkLink) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.PowerShell.cs similarity index 72% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.PowerShell.cs index dce21976d2af..40f6d7ec6b22 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatch partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatch(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,17 +110,17 @@ internal VirtualNetworkLinkPatch(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,11 +135,11 @@ internal VirtualNetworkLinkPatch(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.TypeConverter.cs index a3c43382c9c1..043060df263b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.cs similarity index 64% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.cs index 5e0c2c790828..945db1067801 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IVirtualNetworkLinkPatch, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.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 */; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)Property).Metadata = value ?? null /* model class */; } /// Internal Acessors for Property - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchProperties()); set { {_property = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } /// Updatable properties of the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties Property { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatch.json.cs index b84f28aae57f..d461165ff65f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatch.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatch partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPatch(json) : null; } @@ -101,7 +101,7 @@ internal VirtualNetworkLinkPatch(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs similarity index 78% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.PowerShell.cs index b12d2311bd2e..c02143157fef 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatchProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatchProperties(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,13 +112,13 @@ internal VirtualNetworkLinkPatchProperties(global::System.Collections.IDictionar // actually deserialize if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,7 +133,7 @@ internal VirtualNetworkLinkPatchProperties(global::System.Management.Automation. // actually deserialize if (content.Contains("Metadata")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadataTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.TypeConverter.cs index 4e27ea7f0fb9..e856b062fe8a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.cs similarity index 75% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.cs index fbdb65fb001d..a55f2f0fca41 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IVirtualNetworkLinkPatchProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get; set; } } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchProperties.json.cs index 83ebe0898b36..78442d36ce66 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatchProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkPatchProperties(json) : null; } @@ -101,7 +101,7 @@ internal VirtualNetworkLinkPatchProperties(Microsoft.Azure.PowerShell.Cmdlets.Dn { return; } - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} AfterFromJson(json); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs index a736cf78ade1..2c0cb0cf83f7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPatchPropertiesMetadata(content); } @@ -90,7 +90,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -98,7 +98,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -117,7 +117,7 @@ internal VirtualNetworkLinkPatchPropertiesMetadata(global::System.Collections.ID } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs index 91f36d502dd4..2cf8c33b4040 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.cs index 7cdb81fe10f0..349641d35891 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadataInternal { /// diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs index 51de82331a66..01bafaa4710c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.VirtualNetworkLinkPatchPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatchPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPatchPropertiesMetadata.json.cs index f51fb19de78a..4af08a9c9aed 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPatchPropertiesMetadata.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPatchPropertiesMetadata partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.PowerShell.cs similarity index 64% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.PowerShell.cs index 07f49313c29e..727ea935698b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkProperties(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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.IVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,25 +110,25 @@ internal VirtualNetworkLinkProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -143,19 +143,19 @@ internal VirtualNetworkLinkProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("VirtualNetwork")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetwork",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetwork, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("Metadata")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) content.GetValueForProperty("Metadata",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).Metadata, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadataTypeConverter.ConvertFrom); } if (content.Contains("ProvisioningState")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState.CreateFrom); } if (content.Contains("VirtualNetworkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId = (string) content.GetValueForProperty("VirtualNetworkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal)this).VirtualNetworkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.TypeConverter.cs index 6f10192e6806..de73bd04efa5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.cs similarity index 75% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.cs index 44b68ef9573f..ad56f93acf8b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IVirtualNetworkLinkProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata _metadata; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata()); set => this._metadata = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => (this._metadata = this._metadata ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata()); set => this._metadata = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for VirtualNetwork - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesInternal.VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource _virtualNetwork; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._virtualNetwork = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get => (this._virtualNetwork = this._virtualNetwork ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetwork).Id = value ; } + public string VirtualNetworkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetwork).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } /// /// The current provisioning state of the virtual network link. This is a read-only property and any attempt to set this value /// will be ignored. @@ -91,14 +91,14 @@ internal partial interface IVirtualNetworkLinkPropertiesInternal { /// Metadata attached to the virtual network link. - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource VirtualNetwork { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetwork { get; set; } /// Resource ID. string VirtualNetworkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkProperties.json.cs index ee386a9bdd1c..9b9fdc83f17c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkProperties(json) : null; } @@ -106,8 +106,8 @@ internal VirtualNetworkLinkProperties(Microsoft.Azure.PowerShell.Cmdlets.DnsReso { return; } - {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} - {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} + {_virtualNetwork = If( json?.PropertyT("virtualNetwork"), out var __jsonVirtualNetwork) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonVirtualNetwork) : VirtualNetwork;} + {_metadata = If( json?.PropertyT("metadata"), out var __jsonMetadata) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata.FromJson(__jsonMetadata) : Metadata;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs similarity index 87% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs index 9ee4db66733b..86d6a850d5c9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class VirtualNetworkLinkPropertiesMetadata partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkPropertiesMetadata(content); } @@ -89,7 +89,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -97,7 +97,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -116,7 +116,7 @@ internal VirtualNetworkLinkPropertiesMetadata(global::System.Collections.IDictio } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs index e01842de8ee1..a88fe5495cfe 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.cs index 3576f90ca9bf..a03f99ad60ca 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.IVirtualNetworkLinkPropertiesMetadata, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadataInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.dictionary.cs index 708e4ecb5587..ae2996324b5e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { 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.Api20220701.VirtualNetworkLinkPropertiesMetadata source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPropertiesMetadata source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.json.cs similarity index 95% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkPropertiesMetadata.json.cs index a93a70e85797..9310267187a9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkPropertiesMetadata.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class VirtualNetworkLinkPropertiesMetadata partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs similarity index 74% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.PowerShell.cs index e38d28e5a0b9..c966d057bb1a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class VirtualNetworkLinkSubResourceProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.IVirtualNetworkLinkSubResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new VirtualNetworkLinkSubResourceProperties(content); } @@ -92,7 +92,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. /// /// 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)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -100,7 +100,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701. public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -115,17 +115,17 @@ internal VirtualNetworkLinkSubResourceProperties(global::System.Collections.IDic // actually deserialize if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,11 +140,11 @@ internal VirtualNetworkLinkSubResourceProperties(global::System.Management.Autom // actually deserialize if (content.Contains("VirtualNetworkLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) content.GetValueForProperty("VirtualNetworkLink",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLink, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResourceTypeConverter.ConvertFrom); } if (content.Contains("VirtualNetworkLinkId")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId = (string) content.GetValueForProperty("VirtualNetworkLinkId",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal)this).VirtualNetworkLinkId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs index ae5061684e6e..f6c9fe0e9837 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.cs similarity index 71% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.cs index dffc2b4168a5..9135be3186dd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -11,23 +11,23 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701 /// 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.Api20220701.IVirtualNetworkLinkSubResourceProperties, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourcePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal { /// Internal Acessors for VirtualNetworkLink - 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;} } } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourcePropertiesInternal.VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource()); set { {_virtualNetworkLink = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource _virtualNetworkLink; + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource()); set => this._virtualNetworkLink = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetworkLink { get => (this._virtualNetworkLink = this._virtualNetworkLink ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResourceInternal)VirtualNetworkLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceInternal)VirtualNetworkLink).Id = value ?? null; } + public string VirtualNetworkLinkId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceInternal)VirtualNetworkLink).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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.Api20220701.ISubResource VirtualNetworkLink { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource VirtualNetworkLink { get; set; } /// Resource ID. string VirtualNetworkLinkId { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.json.cs similarity index 93% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/VirtualNetworkLinkSubResourceProperties.json.cs index dd327b9768ed..dd7724c4ee0b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20220701/VirtualNetworkLinkSubResourceProperties.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20230701Preview/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.Api20220701 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class VirtualNetworkLinkSubResourceProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkSubResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkSubResourceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new VirtualNetworkLinkSubResourceProperties(json) : null; } @@ -105,7 +105,7 @@ internal VirtualNetworkLinkSubResourceProperties(Microsoft.Azure.PowerShell.Cmdl { return; } - {_virtualNetworkLink = If( json?.PropertyT("virtualNetworkLink"), out var __jsonVirtualNetworkLink) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.SubResource.FromJson(__jsonVirtualNetworkLink) : VirtualNetworkLink;} + {_virtualNetworkLink = If( json?.PropertyT("virtualNetworkLink"), out var __jsonVirtualNetworkLink) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.SubResource.FromJson(__jsonVirtualNetworkLink) : VirtualNetworkLink;} AfterFromJson(json); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs similarity index 67% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs index c2dcff836393..19d700f9bfb5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.PowerShell.cs @@ -3,15 +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.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// Common fields that are returned in the response for all Azure Resource Manager resources - /// - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial class Resource + /// The resource management error additional info. + [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfoTypeConverter))] + public partial class ErrorAdditionalInfo { /// @@ -57,44 +55,37 @@ public partial class Resource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new Resource(content); + return new ErrorAdditionalInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new Resource(content); + return new ErrorAdditionalInfo(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.Api20.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal Resource(global::System.Collections.IDictionary content) + internal ErrorAdditionalInfo(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -103,27 +94,23 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize - 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")) + if (content.Contains("Type")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Type")) + if (content.Contains("Info")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.AnyTypeConverter.ConvertFrom); } 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 Resource(global::System.Management.Automation.PSObject content) + internal ErrorAdditionalInfo(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -132,29 +119,32 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - 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")) + if (content.Contains("Type")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Type, global::System.Convert.ToString); } - if (content.Contains("Type")) + if (content.Contains("Info")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.AnyTypeConverter.ConvertFrom); } 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.Api50.IErrorAdditionalInfo 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(); } - /// Common fields that are returned in the response for all Azure Resource Manager resources - [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] - public partial interface IResource + /// The resource management error additional info. + [System.ComponentModel.TypeConverter(typeof(ErrorAdditionalInfoTypeConverter))] + public partial interface IErrorAdditionalInfo { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs new file mode 100644 index 000000000000..ed145ca7b2c0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorAdditionalInfoTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api50.IErrorAdditionalInfo ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorAdditionalInfo.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorAdditionalInfo.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorAdditionalInfo.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs new file mode 100644 index 000000000000..79c4d7e9430b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.cs @@ -0,0 +1,74 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The resource management error additional info. + public partial class ErrorAdditionalInfo : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny _info; + + /// The additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any()); } + + /// Internal Acessors for Info + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal.Info { get => (this._info = this._info ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any()); set { {_info = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfoInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _type; + + /// The additional info type. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public ErrorAdditionalInfo() + { + + } + } + /// The resource management error additional info. + public partial interface IErrorAdditionalInfo : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The additional info.", + SerializedName = @"info", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Info { get; } + /// The additional info type. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The additional info type.", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// The resource management error additional info. + internal partial interface IErrorAdditionalInfoInternal + + { + /// The additional info. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IAny Info { get; set; } + /// The additional info type. + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs new file mode 100644 index 000000000000..7214c0dfa483 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorAdditionalInfo.json.cs @@ -0,0 +1,116 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The resource management error additional info. + public partial class ErrorAdditionalInfo + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Any.FromJson(__jsonInfo) : Info;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorAdditionalInfo(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._info ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._info.ToJson(null,serializationMode) : null, "info" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs similarity index 56% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs index 1672dce7002a..584e90b82e67 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.PowerShell.cs @@ -3,15 +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.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; - /// - /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - /// - [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] - public partial class TrackedResource + /// The error detail. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] + public partial class ErrorDetail { /// @@ -57,49 +55,37 @@ public partial class TrackedResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) { - return new TrackedResource(content); + return new ErrorDetail(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { - return new TrackedResource(content); + return new ErrorDetail(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.Api20.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); - - /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. - internal TrackedResource(global::System.Collections.IDictionary content) + internal ErrorDetail(global::System.Collections.IDictionary content) { bool returnNow = false; BeforeDeserializeDictionary(content, ref returnNow); @@ -108,35 +94,35 @@ internal TrackedResource(global::System.Collections.IDictionary content) return; } // actually deserialize - if (content.Contains("Tag")) + if (content.Contains("Code")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } - if (content.Contains("Location")) + if (content.Contains("Message")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("Target")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } - if (content.Contains("Name")) + if (content.Contains("Detail")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); } - if (content.Contains("Type")) + if (content.Contains("AdditionalInfo")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } 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 TrackedResource(global::System.Management.Automation.PSObject content) + internal ErrorDetail(global::System.Management.Automation.PSObject content) { bool returnNow = false; BeforeDeserializePSObject(content, ref returnNow); @@ -145,32 +131,44 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - if (content.Contains("Tag")) + if (content.Contains("Code")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } - if (content.Contains("Location")) + if (content.Contains("Message")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } - if (content.Contains("Id")) + if (content.Contains("Target")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } - if (content.Contains("Name")) + if (content.Contains("Detail")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); } - if (content.Contains("Type")) + if (content.Contains("AdditionalInfo")) { - ((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); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); } 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.Api50.IErrorDetail 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 resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' - [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] - public partial interface ITrackedResource + /// The error detail. + [System.ComponentModel.TypeConverter(typeof(ErrorDetailTypeConverter))] + public partial interface IErrorDetail { diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs new file mode 100644 index 000000000000..8e93e79e579c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorDetailTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api50.IErrorDetail ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorDetail.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorDetail.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorDetail.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs new file mode 100644 index 000000000000..8fcdacd18862 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.cs @@ -0,0 +1,134 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The error detail. + public partial class ErrorDetail : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] _additionalInfo; + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get => this._additionalInfo; } + + /// Backing field for property. + private string _code; + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Code { get => this._code; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] _detail; + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get => this._detail; } + + /// Backing field for property. + private string _message; + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Message { get => this._message; } + + /// Internal Acessors for AdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Code { get => this._code; set { {_code = value;} } } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Detail { get => this._detail; set { {_detail = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Message { get => this._message; set { {_message = value;} } } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal.Target { get => this._target; set { {_target = value;} } } + + /// Backing field for property. + private string _target; + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Target { get => this._target; } + + /// Creates an new instance. + public ErrorDetail() + { + + } + } + /// The error detail. + public partial interface IErrorDetail : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// The error detail. + internal partial interface IErrorDetailInternal + + { + /// The error additional info. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs new file mode 100644 index 000000000000..5d329203add7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorDetail.json.cs @@ -0,0 +1,147 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// The error detail. + public partial class ErrorDetail + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._code)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._code.ToString()) : null, "code" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._target)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._target.ToString()) : null, "target" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._detail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __x in this._detail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("details",__w); + } + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._additionalInfo) + { + var __r = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.XNodeArray(); + foreach( var __s in this._additionalInfo ) + { + AddIf(__s?.ToJson(null, serializationMode) ,__r.Add); + } + container.Add("additionalInfo",__r); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs new file mode 100644 index 000000000000..904c4258982b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.PowerShell.cs @@ -0,0 +1,188 @@ +// 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.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial class ErrorResponse + { + + /// + /// 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.Api50.IErrorResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ErrorResponse(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.Api50.IErrorResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ErrorResponse(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ErrorResponse(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ErrorResponse(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetailTypeConverter.ConvertFrom)); + } + if (content.Contains("AdditionalInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorAdditionalInfoTypeConverter.ConvertFrom)); + } + 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.Api50.IErrorResponse 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(); + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + [System.ComponentModel.TypeConverter(typeof(ErrorResponseTypeConverter))] + public partial interface IErrorResponse + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs new file mode 100644 index 000000000000..5a3fe6d5ff01 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.TypeConverter.cs @@ -0,0 +1,147 @@ +// 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.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class ErrorResponseTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// 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 + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// 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.Api50.IErrorResponse ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return ErrorResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return ErrorResponse.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return ErrorResponse.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs new file mode 100644 index 000000000000..3972ad374a4d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.cs @@ -0,0 +1,136 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + public partial class ErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal + { + + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo; } + + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code; } + + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail _error; + + /// The error object. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail()); set => this._error = value; } + + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message; } + + /// Internal Acessors for AdditionalInfo + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).AdditionalInfo = value; } + + /// Internal Acessors for Code + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Code = value; } + + /// Internal Acessors for Detail + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Detail = value; } + + /// Internal Acessors for Error + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail()); set { {_error = value;} } } + + /// Internal Acessors for Message + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Message = value; } + + /// Internal Acessors for Target + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponseInternal.Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target = value; } + + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetailInternal)Error).Target; } + + /// Creates an new instance. + public ErrorResponse() + { + + } + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + public partial interface IErrorResponse : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// The error additional info. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error additional info.", + SerializedName = @"additionalInfo", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; } + /// The error code. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error code.", + SerializedName = @"code", + PossibleTypes = new [] { typeof(string) })] + string Code { get; } + /// The error details. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error details.", + SerializedName = @"details", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; } + /// The error message. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error message.", + SerializedName = @"message", + PossibleTypes = new [] { typeof(string) })] + string Message { get; } + /// The error target. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The error target.", + SerializedName = @"target", + PossibleTypes = new [] { typeof(string) })] + string Target { get; } + + } + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + internal partial interface IErrorResponseInternal + + { + /// The error additional info. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorAdditionalInfo[] AdditionalInfo { get; set; } + /// The error code. + string Code { get; set; } + /// The error details. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail[] Detail { get; set; } + /// The error object. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorDetail Error { get; set; } + /// The error message. + string Message { get; set; } + /// The error target. + string Target { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs new file mode 100644 index 000000000000..34ba90bd5c84 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ErrorResponse.json.cs @@ -0,0 +1,111 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows + /// the OData error response format.). + /// + public partial class ErrorResponse + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json); + + /// + /// 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. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// 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. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject instance to deserialize from. + internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ErrorDetail.FromJson(__jsonError) : Error;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ErrorResponse(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != this._error ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._error.ToJson(null,serializationMode) : null, "error" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs new file mode 100644 index 000000000000..37e2cbb085d2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.PowerShell.cs @@ -0,0 +1,218 @@ +// 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.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial class ProxyResource + { + + /// + /// 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.Api50.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new ProxyResource(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.Api50.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new ProxyResource(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.Api50.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal ProxyResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal ProxyResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// 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 resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + [System.ComponentModel.TypeConverter(typeof(ProxyResourceTypeConverter))] + public partial interface IProxyResource + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs index c3a4ac86557b..4c74a7f56e06 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs new file mode 100644 index 000000000000..456c0473efc8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.cs @@ -0,0 +1,112 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + /// + public partial class ProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public ProxyResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// 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) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + public partial interface IProxyResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource + { + + } + /// The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location + internal partial interface IProxyResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs index 440ab172e2b6..e15aa3501645 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/ProxyResource.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/ProxyResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ProxyResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; } @@ -79,7 +79,7 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Js { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(json); + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs new file mode 100644 index 000000000000..0caa7ecd33f5 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.PowerShell.cs @@ -0,0 +1,218 @@ +// 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.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial class Resource + { + + /// + /// 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.Api50.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new Resource(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.Api50.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new Resource(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.Api50.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal Resource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal Resource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(content); + } + + /// 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(); + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + [System.ComponentModel.TypeConverter(typeof(ResourceTypeConverter))] + public partial interface IResource + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs index 28a8e072d850..41ccbfdb0d5a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs new file mode 100644 index 000000000000..6ea7a83f8b33 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.cs @@ -0,0 +1,208 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// Common fields that are returned in the response for all Azure Resource Manager resources + /// + public partial class Resource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + { + + /// Backing field for property. + private string _id; + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Id { get => this._id; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => this._id; set { {_id = value;} } } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => this._name; set { {_name = value;} } } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData()); set { {_systemData = value;} } } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => this._type; set { {_type = value;} } } + + /// Backing field for property. + private string _name; + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Name { get => this._name; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData _systemData; + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData()); } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Backing field for property. + private string _type; + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Type { get => this._type; } + + /// Creates an new instance. + public Resource() + { + + } + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + public partial interface IResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable + { + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Fully qualified resource ID for the resource. E.g. ""/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}""", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + string Id { get; } + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The name of the resource", + SerializedName = @"name", + PossibleTypes = new [] { typeof(string) })] + string Name { get; } + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource creation (UTC).", + SerializedName = @"createdAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that created the resource.", + SerializedName = @"createdBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that created the resource.", + SerializedName = @"createdByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The timestamp of resource last modification (UTC)", + SerializedName = @"lastModifiedAt", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The identity that last modified the resource.", + SerializedName = @"lastModifiedBy", + PossibleTypes = new [] { typeof(string) })] + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The type of identity that last modified the resource.", + SerializedName = @"lastModifiedByType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"The type of the resource. E.g. ""Microsoft.Compute/virtualMachines"" or ""Microsoft.Storage/storageAccounts""", + SerializedName = @"type", + PossibleTypes = new [] { typeof(string) })] + string Type { get; } + + } + /// Common fields that are returned in the response for all Azure Resource Manager resources + internal partial interface IResourceInternal + + { + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + string Id { get; set; } + /// The name of the resource + string Name { get; set; } + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get; set; } + /// The timestamp of resource creation (UTC). + global::System.DateTime? SystemDataCreatedAt { get; set; } + /// The identity that created the resource. + string SystemDataCreatedBy { get; set; } + /// The type of identity that created the resource. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get; set; } + /// The timestamp of resource last modification (UTC) + global::System.DateTime? SystemDataLastModifiedAt { get; set; } + /// The identity that last modified the resource. + string SystemDataLastModifiedBy { get; set; } + /// The type of identity that last modified the resource. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get; set; } + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + string Type { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs similarity index 90% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs index 4e256692960d..9c790ab171e4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/Resource.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/Resource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new Resource(json) : null; } @@ -79,6 +79,7 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.Js { return; } + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemData.FromJson(__jsonSystemData) : SystemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} @@ -105,6 +106,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs return container; } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._systemData ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) this._systemData.ToJson(null,serializationMode) : null, "systemData" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs similarity index 84% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs index 6acfeceb24d1..1cfe0cb684f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SystemData partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISyste /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,33 +103,33 @@ internal SystemData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -144,27 +144,27 @@ internal SystemData(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs index 8ef1d1476283..ba89734c98cd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs similarity index 99% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs index 4a7844880796..7b3109104761 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemDataInternal { /// Backing field for property. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs index 3a5042930069..c15271e7f1d2 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/SystemData.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/SystemData.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new SystemData(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs new file mode 100644 index 000000000000..39d08e131939 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.PowerShell.cs @@ -0,0 +1,234 @@ +// 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.Api50 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; + + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] + public partial class TrackedResource + { + + /// + /// 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.Api50.ITrackedResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new TrackedResource(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.Api50.ITrackedResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new TrackedResource(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.Api50.ITrackedResource 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 TrackedResource(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal TrackedResource(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.SystemDataTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)this).Type, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + } + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + [System.ComponentModel.TypeConverter(typeof(TrackedResourceTypeConverter))] + public partial interface ITrackedResource + + { + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs index 112bd4ee3d1b..072ddf9cea2d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs new file mode 100644 index 000000000000..81d10fe7862f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.cs @@ -0,0 +1,146 @@ +// 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.Api50 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + + /// + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + /// + public partial class TrackedResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IValidates + { + /// + /// Backing field for Inherited model + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(); + + /// + /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; } + + /// Backing field for property. + private string _location; + + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string Location { get => this._location; set => this._location = value; } + + /// Internal Acessors for Id + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Id = value; } + + /// Internal Acessors for Name + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name = value; } + + /// Internal Acessors for SystemData + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData = value; } + + /// Internal Acessors for Type + string Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type = value; } + + /// The name of the resource + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Name; } + + /// + /// Azure Resource Manager metadata containing createdBy and modifiedBy information. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ISystemData SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemData; } + + /// The timestamp of resource creation (UTC). + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + + /// The identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedBy = value ?? null; } + + /// The type of identity that created the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// The timestamp of resource last modification (UTC) + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + + /// The identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedBy = value ?? null; } + + /// The type of identity that last modified the resource. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.CreatedByType)""); } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags _tag; + + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags()); set => this._tag = value; } + + /// + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Inherited)] + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal)__resource).Type; } + + /// Creates an new instance. + public TrackedResource() + { + + } + + /// Validates that this object meets the validation criteria. + /// an instance that will receive validation + /// events. + /// + /// 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) + { + await eventListener.AssertNotNull(nameof(__resource), __resource); + await eventListener.AssertObjectIsValid(nameof(__resource), __resource); + } + } + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + public partial interface ITrackedResource : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IJsonSerializable, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResource + { + /// The geo-location where the resource lives + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The geo-location where the resource lives", + SerializedName = @"location", + PossibleTypes = new [] { typeof(string) })] + string Location { get; set; } + /// Resource tags. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get; set; } + + } + /// The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' + internal partial interface ITrackedResourceInternal : + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IResourceInternal + { + /// The geo-location where the resource lives + string Location { get; set; } + /// Resource tags. + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get; set; } + + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs similarity index 96% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs index aa9504ef6a1b..20b7456d1b14 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResource.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class TrackedResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new TrackedResource(json) : null; } @@ -105,8 +105,8 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime. { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.Resource(json); - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.TrackedResourceTags.FromJson(__jsonTags) : Tag;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.Resource(json); + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags.FromJson(__jsonTags) : Tag;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} AfterFromJson(json); } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs similarity index 92% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs index eecb38fca01c..639d43011a42 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TrackedResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceTags(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrack /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrack public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,7 +112,7 @@ internal TrackedResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs index f5eb0b6c1e1a..8e1b0b57a003 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.TypeConverter.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs similarity index 94% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs index 35e2f09c0b60..14a263013dd0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; /// Resource tags. public partial class TrackedResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTagsInternal { /// Creates an new instance. diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs similarity index 98% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs index 20a5c607b5b4..6dbc46d2f096 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.dictionary.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { 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.Api20.TrackedResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.TrackedResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs similarity index 97% rename from src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs rename to src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs index e6139af9fe5d..700310ad971a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api20/TrackedResourceTags.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/Api50/TrackedResourceTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20 +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50 { using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TrackedResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonObject json ? new TrackedResourceTags(json) : null; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs index abb9beed30b7..966727a1972e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.PowerShell.cs @@ -129,6 +129,22 @@ internal DnsResolverIdentity(global::System.Collections.IDictionary content) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName = (string) content.GetValueForProperty("VirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName, global::System.Convert.ToString); } + if (content.Contains("DnsResolverPolicyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName = (string) content.GetValueForProperty("DnsResolverPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName, global::System.Convert.ToString); + } + if (content.Contains("DnsSecurityRuleName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName = (string) content.GetValueForProperty("DnsSecurityRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName, global::System.Convert.ToString); + } + if (content.Contains("DnsResolverPolicyVirtualNetworkLinkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName = (string) content.GetValueForProperty("DnsResolverPolicyVirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName, global::System.Convert.ToString); + } + if (content.Contains("DnsResolverDomainListName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName = (string) content.GetValueForProperty("DnsResolverDomainListName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName, global::System.Convert.ToString); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).Id, global::System.Convert.ToString); @@ -186,6 +202,22 @@ internal DnsResolverIdentity(global::System.Management.Automation.PSObject conte { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName = (string) content.GetValueForProperty("VirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).VirtualNetworkLinkName, global::System.Convert.ToString); } + if (content.Contains("DnsResolverPolicyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName = (string) content.GetValueForProperty("DnsResolverPolicyName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyName, global::System.Convert.ToString); + } + if (content.Contains("DnsSecurityRuleName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName = (string) content.GetValueForProperty("DnsSecurityRuleName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsSecurityRuleName, global::System.Convert.ToString); + } + if (content.Contains("DnsResolverPolicyVirtualNetworkLinkName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName = (string) content.GetValueForProperty("DnsResolverPolicyVirtualNetworkLinkName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverPolicyVirtualNetworkLinkName, global::System.Convert.ToString); + } + if (content.Contains("DnsResolverDomainListName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName = (string) content.GetValueForProperty("DnsResolverDomainListName",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).DnsResolverDomainListName, global::System.Convert.ToString); + } if (content.Contains("Id")) { ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentityInternal)this).Id, global::System.Convert.ToString); diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs index 8d4ea8b71708..e885fd27d384 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.cs @@ -19,6 +19,13 @@ public partial class DnsResolverIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string DnsForwardingRulesetName { get => this._dnsForwardingRulesetName; set => this._dnsForwardingRulesetName = value; } + /// Backing field for property. + private string _dnsResolverDomainListName; + + /// The name of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string DnsResolverDomainListName { get => this._dnsResolverDomainListName; set => this._dnsResolverDomainListName = value; } + /// Backing field for property. private string _dnsResolverName; @@ -26,6 +33,31 @@ public partial class DnsResolverIdentity : [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string DnsResolverName { get => this._dnsResolverName; set => this._dnsResolverName = value; } + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// + /// Backing field for property. + /// + private string _dnsResolverPolicyVirtualNetworkLinkName; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string DnsResolverPolicyVirtualNetworkLinkName { get => this._dnsResolverPolicyVirtualNetworkLinkName; set => this._dnsResolverPolicyVirtualNetworkLinkName = value; } + + /// Backing field for property. + private string _dnsSecurityRuleName; + + /// The name of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] + public string DnsSecurityRuleName { get => this._dnsSecurityRuleName; set => this._dnsSecurityRuleName = value; } + /// Backing field for property. private string _forwardingRuleName; @@ -64,7 +96,7 @@ public partial class DnsResolverIdentity : /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Origin(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.PropertyOrigin.Owned)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } @@ -99,6 +131,14 @@ public partial interface IDnsResolverIdentity : SerializedName = @"dnsForwardingRulesetName", PossibleTypes = new [] { typeof(string) })] string DnsForwardingRulesetName { get; set; } + /// The name of the DNS resolver domain list. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + string DnsResolverDomainListName { get; set; } /// The name of the DNS resolver. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -107,6 +147,32 @@ public partial interface IDnsResolverIdentity : SerializedName = @"dnsResolverName", PossibleTypes = new [] { typeof(string) })] string DnsResolverName { get; set; } + /// The name of the DNS resolver policy. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + string DnsResolverPolicyName { get; set; } + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + string DnsResolverPolicyVirtualNetworkLinkName { get; set; } + /// The name of the DNS security rule. + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + string DnsSecurityRuleName { get; set; } /// The name of the forwarding rule. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, @@ -147,11 +213,11 @@ public partial interface IDnsResolverIdentity : SerializedName = @"resourceGroupName", PossibleTypes = new [] { typeof(string) })] string ResourceGroupName { get; set; } - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = false, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] string SubscriptionId { get; set; } @@ -178,8 +244,18 @@ internal partial interface IDnsResolverIdentityInternal { /// The name of the DNS forwarding ruleset. string DnsForwardingRulesetName { get; set; } + /// The name of the DNS resolver domain list. + string DnsResolverDomainListName { get; set; } /// The name of the DNS resolver. string DnsResolverName { get; set; } + /// The name of the DNS resolver policy. + string DnsResolverPolicyName { get; set; } + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + string DnsResolverPolicyVirtualNetworkLinkName { get; set; } + /// The name of the DNS security rule. + string DnsSecurityRuleName { get; set; } /// The name of the forwarding rule. string ForwardingRuleName { get; set; } /// Resource identity path @@ -190,7 +266,7 @@ internal partial interface IDnsResolverIdentityInternal string OutboundEndpointName { get; set; } /// The name of the resource group. The name is case insensitive. string ResourceGroupName { get; set; } - /// The ID of the target subscription. + /// The ID of the target subscription. The value must be an UUID. string SubscriptionId { get; set; } /// The name of the virtual network link. string VirtualNetworkLinkName { get; set; } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs index 4bff27802e07..a7cb4e5da4d8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Models/DnsResolverIdentity.json.cs @@ -73,6 +73,10 @@ internal DnsResolverIdentity(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runt {_dnsForwardingRulesetName = If( json?.PropertyT("dnsForwardingRulesetName"), out var __jsonDnsForwardingRulesetName) ? (string)__jsonDnsForwardingRulesetName : (string)DnsForwardingRulesetName;} {_forwardingRuleName = If( json?.PropertyT("forwardingRuleName"), out var __jsonForwardingRuleName) ? (string)__jsonForwardingRuleName : (string)ForwardingRuleName;} {_virtualNetworkLinkName = If( json?.PropertyT("virtualNetworkLinkName"), out var __jsonVirtualNetworkLinkName) ? (string)__jsonVirtualNetworkLinkName : (string)VirtualNetworkLinkName;} + {_dnsResolverPolicyName = If( json?.PropertyT("dnsResolverPolicyName"), out var __jsonDnsResolverPolicyName) ? (string)__jsonDnsResolverPolicyName : (string)DnsResolverPolicyName;} + {_dnsSecurityRuleName = If( json?.PropertyT("dnsSecurityRuleName"), out var __jsonDnsSecurityRuleName) ? (string)__jsonDnsSecurityRuleName : (string)DnsSecurityRuleName;} + {_dnsResolverPolicyVirtualNetworkLinkName = If( json?.PropertyT("dnsResolverPolicyVirtualNetworkLinkName"), out var __jsonDnsResolverPolicyVirtualNetworkLinkName) ? (string)__jsonDnsResolverPolicyVirtualNetworkLinkName : (string)DnsResolverPolicyVirtualNetworkLinkName;} + {_dnsResolverDomainListName = If( json?.PropertyT("dnsResolverDomainListName"), out var __jsonDnsResolverDomainListName) ? (string)__jsonDnsResolverDomainListName : (string)DnsResolverDomainListName;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -117,6 +121,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode ToJs AddIf( null != (((object)this._dnsForwardingRulesetName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsForwardingRulesetName.ToString()) : null, "dnsForwardingRulesetName" ,container.Add ); AddIf( null != (((object)this._forwardingRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._forwardingRuleName.ToString()) : null, "forwardingRuleName" ,container.Add ); AddIf( null != (((object)this._virtualNetworkLinkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._virtualNetworkLinkName.ToString()) : null, "virtualNetworkLinkName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverPolicyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverPolicyName.ToString()) : null, "dnsResolverPolicyName" ,container.Add ); + AddIf( null != (((object)this._dnsSecurityRuleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsSecurityRuleName.ToString()) : null, "dnsSecurityRuleName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverPolicyVirtualNetworkLinkName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverPolicyVirtualNetworkLinkName.ToString()) : null, "dnsResolverPolicyVirtualNetworkLinkName" ,container.Add ); + AddIf( null != (((object)this._dnsResolverDomainListName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._dnsResolverDomainListName.ToString()) : null, "dnsResolverDomainListName" ,container.Add ); AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.Completer.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.Completer.cs new file mode 100644 index 000000000000..4a7679bd2f5b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.Completer.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The type of action to take. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionTypeTypeConverter))] + public partial struct ActionType : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Allow".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Allow'", "Allow", global::System.Management.Automation.CompletionResultType.ParameterValue, "Allow"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Alert".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Alert'", "Alert", global::System.Management.Automation.CompletionResultType.ParameterValue, "Alert"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Block".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Block'", "Block", global::System.Management.Automation.CompletionResultType.ParameterValue, "Block"); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.TypeConverter.cs new file mode 100644 index 000000000000..f0cc23d6ef81 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The type of action to take. + public partial class ActionTypeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ActionType.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.cs new file mode 100644 index 000000000000..1abdb69145ae --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/ActionType.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The type of action to take. + public partial struct ActionType : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType Alert = @"Alert"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType Allow = @"Allow"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType Block = @"Block"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ActionType(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to ActionType + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ActionType(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ActionType + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ActionType (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ActionType && Equals((ActionType)obj); + } + + /// Returns hashCode for enum ActionType + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for ActionType + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ActionType + /// the value to convert to an instance of . + + public static implicit operator ActionType(string value) + { + return new ActionType(value); + } + + /// Implicit operator to convert ActionType to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e) + { + return e._value; + } + + /// Overriding != operator for enum ActionType + /// 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.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ActionType + /// 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.ActionType e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.Completer.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.Completer.cs new file mode 100644 index 000000000000..db8f60c0fa98 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.Completer.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The response code for block actions. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCodeTypeConverter))] + public partial struct BlockResponseCode : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "SERVFAIL".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'SERVFAIL'", "SERVFAIL", global::System.Management.Automation.CompletionResultType.ParameterValue, "SERVFAIL"); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.TypeConverter.cs new file mode 100644 index 000000000000..9fd5d5584408 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The response code for block actions. + public partial class BlockResponseCodeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => BlockResponseCode.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.cs new file mode 100644 index 000000000000..4aea3478e6ef --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/BlockResponseCode.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The response code for block actions. + public partial struct BlockResponseCode : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode Servfail = @"SERVFAIL"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private BlockResponseCode(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Conversion from arbitrary object to BlockResponseCode + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new BlockResponseCode(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type BlockResponseCode + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type BlockResponseCode (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is BlockResponseCode && Equals((BlockResponseCode)obj); + } + + /// Returns hashCode for enum BlockResponseCode + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for BlockResponseCode + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to BlockResponseCode + /// the value to convert to an instance of . + + public static implicit operator BlockResponseCode(string value) + { + return new BlockResponseCode(value); + } + + /// Implicit operator to convert BlockResponseCode to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e) + { + return e._value; + } + + /// Overriding != operator for enum BlockResponseCode + /// 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.BlockResponseCode e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum BlockResponseCode + /// 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.BlockResponseCode e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.Completer.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.Completer.cs new file mode 100644 index 000000000000..efea74a5f2ea --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The state of DNS security rule. + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleStateTypeConverter))] + public partial struct DnsSecurityRuleState : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.TypeConverter.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.TypeConverter.cs new file mode 100644 index 000000000000..0a1b4866fab9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The state of DNS security rule. + public partial class DnsSecurityRuleStateTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => DnsSecurityRuleState.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.cs b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.cs new file mode 100644 index 000000000000..a6c501041c61 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/api/Support/DnsSecurityRuleState.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support +{ + + /// The state of DNS security rule. + public partial struct DnsSecurityRuleState : + System.IEquatable + { + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState Disabled = @"Disabled"; + + public static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState Enabled = @"Enabled"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to DnsSecurityRuleState + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DnsSecurityRuleState(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DnsSecurityRuleState(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DnsSecurityRuleState + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DnsSecurityRuleState (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DnsSecurityRuleState && Equals((DnsSecurityRuleState)obj); + } + + /// Returns hashCode for enum DnsSecurityRuleState + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DnsSecurityRuleState + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DnsSecurityRuleState + /// the value to convert to an instance of . + + public static implicit operator DnsSecurityRuleState(string value) + { + return new DnsSecurityRuleState(value); + } + + /// Implicit operator to convert DnsSecurityRuleState to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e) + { + return e._value; + } + + /// Overriding != operator for enum DnsSecurityRuleState + /// 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.DnsSecurityRuleState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DnsSecurityRuleState + /// 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.DnsSecurityRuleState e1, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs index 6c95d75f4929..23f7b26ff37b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/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.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -142,12 +142,12 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::Syste /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -162,24 +162,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_Get : global::Syste /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs index a555f03f0a38..e408eca9f8be 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/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.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_GetViaIdentity : gl /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs index 493f54e82354..c8b4b6a545db 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetForwardingRule_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/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.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists forwarding rules in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -133,12 +133,12 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::Syst /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsForwardingRulesetForwardingRule_List : global::Syst /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRuleListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRuleListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs index c797ce01e392..85886677523d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -142,12 +142,12 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::S /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -162,24 +162,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_Get : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs index 5e948a68693f..00ddcd6f3153 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_GetViaIdentity /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs index 0546d2b5d3a5..a40fcc547d04 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRulesetVirtualNetworkLink_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsForwardingRulesetVirtualNetworkLink_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists virtual network links to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -133,12 +133,12 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global:: /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsForwardingRulesetVirtualNetworkLink_List : global:: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs index d61c341cf3b0..fabfa6a9902e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [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.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets a DNS forwarding ruleset properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -128,12 +128,12 @@ public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.A /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -148,24 +148,24 @@ public partial class GetAzDnsForwardingRuleset_Get : global::System.Management.A /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +395,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +413,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +430,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs index 68ade125d02a..6526f425c5b4 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [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.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets a DNS forwarding ruleset properties.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsForwardingRuleset_GetViaIdentity : global::System.M /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -351,12 +351,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +391,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs index e40a146d8d58..34af3794478b 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List.cs @@ -13,10 +13,10 @@ 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.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -119,12 +119,12 @@ public partial class GetAzDnsForwardingRuleset_List : global::System.Management. /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -155,24 +155,24 @@ public partial class GetAzDnsForwardingRuleset_List : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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) @@ -380,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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,7 +402,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 } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs index f9da56fa1881..939ee86abc8e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List1.cs @@ -13,10 +13,10 @@ 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.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding rulesets in all resource groups of a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsForwardingRulesets", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -105,12 +105,12 @@ public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -141,24 +141,24 @@ public partial class GetAzDnsForwardingRuleset_List1 : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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) @@ -366,12 +366,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,7 +388,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 } @@ -406,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs index 353de740e708..ae4583436ca7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsForwardingRuleset_List2.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/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.Api20220701.IVirtualNetworkDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS forwarding ruleset resource IDs attached to a virtual network.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsForwardingRulesets", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -119,12 +119,12 @@ public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsForwardingRuleset_List2 : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRulesetListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -397,12 +397,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +419,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -437,12 +437,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRulesetListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs new file mode 100644 index 000000000000..95d9768ad11e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_Get.cs @@ -0,0 +1,438 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver domain list. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverDomainList_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver domain list. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver domain list.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverDomainListName")] + [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; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverDomainList_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsGet(SubscriptionId, ResourceGroupName, Name, 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs new file mode 100644 index 000000000000..4d27a5701bf8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_GetViaIdentity.cs @@ -0,0 +1,416 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver domain list. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverDomainList_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverDomainList_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverDomainListsGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverDomainListName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverDomainListName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverDomainListsGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverDomainListName ?? null, 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 { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 { }) + { + 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 { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs new file mode 100644 index 000000000000..d2ef976ab8a9 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List.cs @@ -0,0 +1,461 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver domain lists within a resource group. + /// + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver domain lists within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverDomainList_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverDomainList_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs new file mode 100644 index 000000000000..b4e6c4c2c0c3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverDomainList_List1.cs @@ -0,0 +1,447 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver domain lists in all resource groups of a subscription. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverDomainList_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver domain lists in all resource groups of a subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverDomainLists", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverDomainList_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverDomainList_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverDomainListsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs index ca4c4d342ce7..fed67bb0ac14 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/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.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -142,12 +142,12 @@ public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Manage /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -162,24 +162,24 @@ public partial class GetAzDnsResolverInboundEndpoint_Get : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs index cf8bd78a80e3..80fd0baad9ac 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/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.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolverInboundEndpoint_GetViaIdentity : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs index 97b79d85b43c..715087b8de4f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverInboundEndpoint_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/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.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists inbound endpoints for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -133,12 +133,12 @@ public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Manag /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsResolverInboundEndpoint_List : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs index c7720616585d..91b331e81ddc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -142,12 +142,12 @@ public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Manag /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -162,24 +162,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_Get : global::System.Manag /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -387,12 +387,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -409,7 +409,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -427,12 +427,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -444,7 +444,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs index e0ce351a7ec8..07ea542d350d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_GetViaIdentity : global::S /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -355,12 +355,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -377,7 +377,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -412,7 +412,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs index 773c60981c24..c5480ef2f7bb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverOutboundEndpoint_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverOutboundEndpoint_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists outbound endpoints for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -133,12 +133,12 @@ public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Mana /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsResolverOutboundEndpoint_List : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -394,12 +394,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -416,7 +416,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -434,12 +434,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs new file mode 100644 index 000000000000..609415737b26 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_Get.cs @@ -0,0 +1,452 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS security rule for a DNS resolver policy. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS security rule for a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyDnsSecurityRule_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS security rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsSecurityRuleName")] + [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; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyDnsSecurityRule_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesGet(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, 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,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) + { + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs new file mode 100644 index 000000000000..fc420566dde1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity.cs @@ -0,0 +1,420 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS security rule for a DNS resolver policy. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS security rule for a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyDnsSecurityRule_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsSecurityRulesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsSecurityRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsSecurityRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsSecurityRulesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsSecurityRuleName ?? null, 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 { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 { }) + { + 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 { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs new file mode 100644 index 000000000000..1af91a11350b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyDnsSecurityRule_List.cs @@ -0,0 +1,475 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS security rules for a DNS resolver policy. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyDnsSecurityRule_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS security rules for a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyDnsSecurityRule_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyDnsSecurityRule_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesList(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRuleListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsSecurityRulesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs new file mode 100644 index 000000000000..026043401f37 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_Get.cs @@ -0,0 +1,454 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver policy virtual network link. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyVirtualNetworkLink_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy virtual network link for the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyVirtualNetworkLinkName")] + [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; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyVirtualNetworkLink_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksGet(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, 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,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) + { + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs new file mode 100644 index 000000000000..714db990f6b7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity.cs @@ -0,0 +1,420 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver policy virtual network link. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyVirtualNetworkLink_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPolicyVirtualNetworkLinksGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyVirtualNetworkLinkName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyVirtualNetworkLinkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPolicyVirtualNetworkLinksGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsResolverPolicyVirtualNetworkLinkName ?? null, 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 { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 { }) + { + 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 { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs new file mode 100644 index 000000000000..f992489a65e2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicyVirtualNetworkLink_List.cs @@ -0,0 +1,475 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver policy virtual network links. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicyVirtualNetworkLink_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policy virtual network links.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicyVirtualNetworkLink_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicyVirtualNetworkLink_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksList(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,DnsResolverPolicyName=DnsResolverPolicyName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverPolicyName=DnsResolverPolicyName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPolicyVirtualNetworkLinksList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs new file mode 100644 index 000000000000..0a4854b2f336 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_Get.cs @@ -0,0 +1,438 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver policy. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_Get")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_Get : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyName")] + [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; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_Get() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesGet(SubscriptionId, ResourceGroupName, Name, 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs new file mode 100644 index 000000000000..1ba0077c1d29 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_GetViaIdentity.cs @@ -0,0 +1,416 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Gets properties of a DNS resolver policy. + /// + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_GetViaIdentity")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_GetViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_GetViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPoliciesGetViaIdentity(InputObject.Id, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPoliciesGet(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, 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 { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 { }) + { + 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 { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs new file mode 100644 index 000000000000..75e2d1147536 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List.cs @@ -0,0 +1,461 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver policies within a resource group. + /// + /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policies within a resource group.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_List : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_List() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesListByResourceGroup(SubscriptionId, ResourceGroupName, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs new file mode 100644 index 000000000000..dfc3159b9989 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List1.cs @@ -0,0 +1,447 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver policies in all resource groups of a subscription. + /// + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List1")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policies in all resource groups of a subscription.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolverPolicies", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_List1 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private int _top; + + /// + /// The maximum number of results to return. If not specified, returns up to 100 results. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The maximum number of results to return. If not specified, returns up to 100 results.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The maximum number of results to return. If not specified, returns up to 100 results.", + SerializedName = @"$top", + PossibleTypes = new [] { typeof(int) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Query)] + public int Top { get => this._top; set => this._top = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_List1() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesList(SubscriptionId, this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?), onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyListResult + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs new file mode 100644 index 000000000000..b05a96b93507 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolverPolicy_List2.cs @@ -0,0 +1,462 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Lists DNS resolver policy resource IDs linked to a virtual network. + /// + /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolverPolicy_List2", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver policy resource IDs linked to a virtual network.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolverPolicies", ApiVersion = "2023-07-01-preview")] + public partial class GetAzDnsResolverPolicy_List2 : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string[] _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string[] SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _virtualNetworkName; + + /// The name of the virtual network. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the virtual network.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the virtual network.", + SerializedName = @"virtualNetworkName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string VirtualNetworkName { get => this._virtualNetworkName; set => this._virtualNetworkName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public GetAzDnsResolverPolicy_List2() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + var data = messageData(); + WriteInformation(data.Message, new string[]{}); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesListByVirtualNetwork' operation")) + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + foreach( var SubscriptionId in this.SubscriptionId ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesListByVirtualNetwork(SubscriptionId, ResourceGroupName, VirtualNetworkName, 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,VirtualNetworkName=VirtualNetworkName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, VirtualNetworkName=VirtualNetworkName }) + { + 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, VirtualNetworkName=VirtualNetworkName }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // response should be returning an array of some kind. +Pageable + // pageable / value / nextLink + var result = await response; + WriteObject(result.Value,true); + _nextLink = result.NextLink; + if (_isFirst) + { + _isFirst = false; + while (_nextLink != null) + { + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DnsResolverPoliciesListByVirtualNetwork_Call(requestMessage, onOk, onDefault, this, Pipeline); + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs index 3ce256cd3156..b437f8352183 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -128,12 +128,12 @@ public partial class GetAzDnsResolver_Get : global::System.Management.Automation /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -148,24 +148,24 @@ public partial class GetAzDnsResolver_Get : global::System.Management.Automation /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -373,12 +373,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -395,7 +395,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -413,12 +413,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -430,7 +430,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs index eca798fa6cc7..d470def8418d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_GetViaIdentity.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_GetViaIdentity")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Gets properties of a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -109,24 +109,24 @@ public partial class GetAzDnsResolver_GetViaIdentity : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -351,12 +351,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -373,7 +373,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -391,12 +391,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -408,7 +408,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs index 92b324ea2be3..edf33bd253dc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List.cs @@ -13,10 +13,10 @@ 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.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers within a resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -119,12 +119,12 @@ public partial class GetAzDnsResolver_List : global::System.Management.Automatio /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -155,24 +155,24 @@ public partial class GetAzDnsResolver_List : global::System.Management.Automatio /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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) @@ -380,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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,7 +402,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 } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs index bf32ace1586e..9268fac546be 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List1.cs @@ -13,10 +13,10 @@ 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.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolvers in all resource groups of a subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.Network/dnsResolvers", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -105,12 +105,12 @@ public partial class GetAzDnsResolver_List1 : global::System.Management.Automati /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -141,24 +141,24 @@ public partial class GetAzDnsResolver_List1 : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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) @@ -366,12 +366,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,7 +388,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 } @@ -406,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs index aec99dc5a0ef..b9b1ecf9e625 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/GetAzDnsResolver_List2.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] ListByVirtualNetwork=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDnsResolver_List2", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Lists DNS resolver resource IDs linked to a virtual network.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/listDnsResolvers", ApiVersion = "2023-07-01-preview")] public partial class GetAzDnsResolver_List2 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -119,12 +119,12 @@ public partial class GetAzDnsResolver_List2 : global::System.Management.Automati /// Backing field for property. private string[] _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -169,24 +169,24 @@ public partial class GetAzDnsResolver_List2 : global::System.Management.Automati /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResourceListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -397,12 +397,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -419,7 +419,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, VirtualNetworkName=VirtualNetworkName, Top=this.InvocationInformation.BoundParameters.ContainsKey("Top") ? Top : default(int?) }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -437,12 +437,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResourceListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs index 3cb343c8deed..2771c4c3d7d9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetForwardingRule_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/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.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule within a DNS forwarding ruleset. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRule(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRule(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -149,8 +149,8 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -213,12 +213,12 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -237,44 +237,44 @@ public partial class NewAzDnsForwardingRulesetForwardingRule_CreateExpanded : gl ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnCreated will be called before the regular onCreated has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onCreated method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -480,12 +480,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 201 (Created). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onCreated(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -497,7 +497,7 @@ protected override void StopProcessing() return ; } // onCreated - response for 201 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } @@ -506,12 +506,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -528,7 +528,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -546,12 +546,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -563,7 +563,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs index 771611beb4e7..cfb0593eebc0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLink(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLink(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -131,8 +131,8 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -203,12 +203,12 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -234,24 +234,24 @@ public partial class NewAzDnsForwardingRulesetVirtualNetworkLink_CreateExpanded /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -518,12 +518,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -540,7 +540,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -558,12 +558,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -575,7 +575,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs index 4a3847c094bd..e6bb9aa9bcf7 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsForwardingRuleset_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [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.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRuleset(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRuleset(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +72,8 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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")] @@ -203,12 +203,12 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -227,32 +227,32 @@ public partial class NewAzDnsForwardingRuleset_CreateExpanded : global::System.M ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -516,12 +516,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -538,7 +538,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -556,12 +556,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -573,7 +573,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs new file mode 100644 index 000000000000..80af42d38cca --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverDomainList_CreateExpanded.cs @@ -0,0 +1,578 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Creates or updates a DNS resolver domain list. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverDomainList_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class NewAzDnsResolverDomainList_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver domain list. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainList(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [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 domains in the domain list. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The domains in the domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + public string[] Domain { get => _parametersBody.Domain ?? null /* arrayOf */; set => _parametersBody.Domain = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private string _ifNoneMatch; + + /// + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", + SerializedName = @"If-None-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + 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; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver domain list. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver domain list.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverDomainListName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [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 = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzDnsResolverDomainList_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverDomainList_CreateExpanded Clone() + { + var clone = new NewAzDnsResolverDomainList_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + clone.IfNoneMatch = this.IfNoneMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDnsResolverDomainList_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverDomainListsCreateOrUpdate(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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs index 4e42ee26d1c2..c13d9f0e14e3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverInboundEndpoint_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/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.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpoint(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -95,8 +95,8 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy ReadOnly = false, Description = @"IP configurations for the inbound endpoint.", SerializedName = @"ipConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IIPConfiguration[] IPConfiguration { get => _parametersBody.IPConfiguration ?? null /* arrayOf */; set => _parametersBody.IPConfiguration = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] IPConfiguration { get => _parametersBody.IPConfiguration ?? null /* arrayOf */; set => _parametersBody.IPConfiguration = value; } /// Backing field for property. private string _ifMatch; @@ -214,12 +214,12 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -238,32 +238,32 @@ public partial class NewAzDnsResolverInboundEndpoint_CreateExpanded : global::Sy ReadOnly = false, 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; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -528,12 +528,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -550,7 +550,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -568,12 +568,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -585,7 +585,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs index ae915baf390f..e0b97208c468 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverOutboundEndpoint_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverOutboundEndpoint_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpoint(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpoint(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -213,12 +213,12 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -237,32 +237,32 @@ public partial class NewAzDnsResolverOutboundEndpoint_CreateExpanded : global::S ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -527,12 +527,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -549,7 +549,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -567,12 +567,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -584,7 +584,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs new file mode 100644 index 000000000000..71e01fefdedf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded.cs @@ -0,0 +1,640 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Creates or updates a DNS security rule for a DNS resolver policy. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicyDnsSecurityRule_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS security rule for a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS security rule. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRule(); + + /// The response code for block actions. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The response code for block actions.")] + [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 response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode ActionBlockResponseCode { get => _parametersBody.ActionBlockResponseCode ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); set => _parametersBody.ActionBlockResponseCode = value; } + + /// The type of action to take. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] + [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 type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType ActionType { get => _parametersBody.ActionType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); set => _parametersBody.ActionType = value; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "DNS resolver policy domains lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// The state of DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The state of DNS security 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, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState DnsSecurityRuleState { get => _parametersBody.State ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); 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")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private string _ifNoneMatch; + + /// + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", + SerializedName = @"If-None-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + 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; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS security rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsSecurityRuleName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The priority of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The priority of the DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + public int Priority { get => _parametersBody.Priority; set => _parametersBody.Priority = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [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 = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded Clone() + { + var clone = new NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + clone.IfNoneMatch = this.IfNoneMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDnsResolverPolicyDnsSecurityRule_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsSecurityRulesCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, 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,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs new file mode 100644 index 000000000000..82d154fd4874 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded.cs @@ -0,0 +1,594 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Creates or updates a DNS resolver policy virtual network link. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy virtual network link. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLink(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private string _ifNoneMatch; + + /// + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", + SerializedName = @"If-None-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + 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; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy virtual network link for the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyVirtualNetworkLinkName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [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 = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// 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 = true, + ReadOnly = false, + Description = @"Resource ID.", + SerializedName = @"id", + PossibleTypes = new [] { typeof(string) })] + 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 Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded Clone() + { + var clone = new NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + clone.IfNoneMatch = this.IfNoneMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDnsResolverPolicyVirtualNetworkLink_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverPolicyVirtualNetworkLinksCreateOrUpdate(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, 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,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs new file mode 100644 index 000000000000..eb4410237b79 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolverPolicy_CreateExpanded.cs @@ -0,0 +1,566 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Creates or updates a DNS resolver policy. + /// + /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolverPolicy_CreateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class NewAzDnsResolverPolicy_CreateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicy(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private string _ifNoneMatch; + + /// + /// Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. Other values will be ignored.", + SerializedName = @"If-None-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfNoneMatch { get => this._ifNoneMatch; set => this._ifNoneMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// The geo-location where the resource lives + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The geo-location where the resource lives")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + 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; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Resource tags. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] + [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 = @"Resource tags.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of NewAzDnsResolverPolicy_CreateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.NewAzDnsResolverPolicy_CreateExpanded Clone() + { + var clone = new NewAzDnsResolverPolicy_CreateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + clone.IfNoneMatch = this.IfNoneMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public NewAzDnsResolverPolicy_CreateExpanded() + { + + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesCreateOrUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverPoliciesCreateOrUpdate(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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs index 18acfe9e1497..c7365620fbef 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/NewAzDnsResolver_CreateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDnsResolver_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Creates or updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class NewAzDnsResolver_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolver(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolver(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -188,12 +188,12 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -212,8 +212,8 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management ReadOnly = false, Description = @"Resource tags.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.ITrackedResourceTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// Resource ID. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Resource ID.")] @@ -231,24 +231,24 @@ public partial class NewAzDnsResolver_CreateExpanded : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -512,12 +512,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -534,7 +534,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, IfNoneMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfNoneMatch") ? IfNoneMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -552,12 +552,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -569,7 +569,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs index 751441574999..7c043b47b6bf 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -168,12 +168,12 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_Delete : global: /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -421,12 +421,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -443,7 +443,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs index fe5a8de9b2fb..eeb3af11bca8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a forwarding rule in a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -135,12 +135,12 @@ public partial class RemoveAzDnsForwardingRulesetForwardingRule_DeleteViaIdentit /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -392,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -414,7 +414,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs index b3ca3a02ef6c..75543dedd3df 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -181,12 +181,12 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : glo /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_Delete : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs index e70c4976d117..9775def1252f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a virtual network link to a DNS forwarding ruleset. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,12 +148,12 @@ public partial class RemoveAzDnsForwardingRulesetVirtualNetworkLink_DeleteViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -459,12 +459,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -481,7 +481,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs index b9874353f310..1758b5c72855 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_Delete.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -168,12 +168,12 @@ public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Manage /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -188,12 +188,12 @@ public partial class RemoveAzDnsForwardingRuleset_Delete : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -475,12 +475,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -497,7 +497,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs index 7328d233d174..16ff3135d779 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsForwardingRuleset_DeleteViaIdentity.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS forwarding ruleset. WARNING: This operation cannot be undone. All forwarding rules within the ruleset will be deleted.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -149,12 +149,12 @@ public partial class RemoveAzDnsForwardingRuleset_DeleteViaIdentity : global::Sy /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -453,12 +453,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -475,7 +475,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs new file mode 100644 index 000000000000..698abeb9b159 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_Delete.cs @@ -0,0 +1,527 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Deletes a DNS resolver domain list. WARNING: This operation cannot be undone. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverDomainList_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverDomainList_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver domain list. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver domain list.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverDomainListName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverDomainList_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverDomainList_Delete Clone() + { + var clone = new RemoveAzDnsResolverDomainList_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverDomainListsDelete(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverDomainList_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs new file mode 100644 index 000000000000..b3fd91765f28 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverDomainList_DeleteViaIdentity.cs @@ -0,0 +1,505 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Deletes a DNS resolver domain list. WARNING: This operation cannot be undone. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverDomainList_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver domain list. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverDomainList_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverDomainList_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverDomainList_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDnsResolverDomainList_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverDomainListsDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverDomainListName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverDomainListName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverDomainListsDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverDomainListName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverDomainList_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs index 1ae0577c25cd..91133976757c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -181,12 +181,12 @@ public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System. /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class RemoveAzDnsResolverInboundEndpoint_Delete : global::System. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs index 47f8f9be358c..7c94a70a9dc8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,12 +148,12 @@ public partial class RemoveAzDnsResolverInboundEndpoint_DeleteViaIdentity : glob /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -456,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -478,7 +478,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs index 47b4766dcc81..da5a0c150ecd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_Delete.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -181,12 +181,12 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -201,12 +201,12 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_Delete : global::System /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -489,12 +489,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -511,7 +511,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs index 15e7022f4751..2837c7742e98 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -148,12 +148,12 @@ public partial class RemoveAzDnsResolverOutboundEndpoint_DeleteViaIdentity : glo /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -456,12 +456,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -478,7 +478,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs new file mode 100644 index 000000000000..c060f9cb1202 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_Delete.cs @@ -0,0 +1,544 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// + /// Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicyDnsSecurityRule_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS security rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsSecurityRuleName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverPolicyDnsSecurityRule_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicyDnsSecurityRule_Delete Clone() + { + var clone = new RemoveAzDnsResolverPolicyDnsSecurityRule_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsSecurityRulesDelete(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, 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,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicyDnsSecurityRule_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs new file mode 100644 index 000000000000..c05558f21b49 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity.cs @@ -0,0 +1,513 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// + /// Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS security rule for a DNS resolver policy. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsSecurityRulesDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsSecurityRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsSecurityRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsSecurityRulesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsSecurityRuleName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs new file mode 100644 index 000000000000..bfa9b1b14a3e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete.cs @@ -0,0 +1,546 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// + /// Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicyVirtualNetworkLink_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy virtual network link for the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyVirtualNetworkLinkName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete Clone() + { + var clone = new RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverPolicyVirtualNetworkLinksDelete(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, 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,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicyVirtualNetworkLink_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs new file mode 100644 index 000000000000..c8fd74108197 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity.cs @@ -0,0 +1,513 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// + /// Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone. + /// + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy virtual network link. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPolicyVirtualNetworkLinksDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyVirtualNetworkLinkName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyVirtualNetworkLinkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPolicyVirtualNetworkLinksDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsResolverPolicyVirtualNetworkLinkName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs new file mode 100644 index 000000000000..eaec5beaa042 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_Delete.cs @@ -0,0 +1,527 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Deletes a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicy_Delete", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicy_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverPolicy_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicy_Delete Clone() + { + var clone = new RemoveAzDnsResolverPolicy_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverPoliciesDelete(SubscriptionId, ResourceGroupName, Name, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicy_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs new file mode 100644 index 000000000000..b71a8de67b5e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolverPolicy_DeleteViaIdentity.cs @@ -0,0 +1,505 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Deletes a DNS resolver policy. WARNING: This operation cannot be undone. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDnsResolverPolicy_DeleteViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver policy. WARNING: This operation cannot be undone.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class RemoveAzDnsResolverPolicy_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnNoContent will be called before the regular onNoContent 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. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, 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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDnsResolverPolicy_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.RemoveAzDnsResolverPolicy_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDnsResolverPolicy_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPoliciesDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPoliciesDelete(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, onNoContent, 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDnsResolverPolicy_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs index abdc8f7c5af2..741d4cd03439 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolver_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -165,12 +165,12 @@ public partial class RemoveAzDnsResolver_Delete : global::System.Management.Auto /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -185,12 +185,12 @@ public partial class RemoveAzDnsResolver_Delete : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -472,12 +472,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -494,7 +494,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs index aa4776dfd930..1afd76ba40b0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/RemoveAzDnsResolver_DeleteViaIdentity.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Deletes a DNS resolver. WARNING: This operation cannot be undone.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -146,12 +146,12 @@ public partial class RemoveAzDnsResolver_DeleteViaIdentity : global::System.Mana /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -450,12 +450,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -472,7 +472,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs index 54ae0e57a65a..139e652ed28d 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/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.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatch(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -122,8 +122,8 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -186,12 +186,12 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -210,32 +210,32 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded : ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -443,12 +443,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -465,7 +465,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -483,12 +483,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -500,7 +500,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs index 7fc49c09b82c..3f0d21a797cb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/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.Api20220701.IForwardingRule))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a forwarding rule in a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/forwardingRules/{forwardingRuleName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a forwarding rule for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ForwardingRulePatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ForwardingRulePatch(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -116,8 +116,8 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit ReadOnly = false, Description = @"Metadata attached to the forwarding rule.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRulePatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -157,32 +157,32 @@ public partial class UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentit ReadOnly = false, Description = @"DNS servers to forward the DNS query to.", SerializedName = @"targetDnsServers", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] TargetDnsServer { get => _parametersBody.TargetDnsServer ?? null /* arrayOf */; set => _parametersBody.TargetDnsServer = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -415,12 +415,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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 +437,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -455,12 +455,12 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -472,7 +472,7 @@ public UpdateAzDnsForwardingRulesetForwardingRule_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs index e299663ce932..616f31d4e735 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -115,8 +115,8 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -187,12 +187,12 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -207,24 +207,24 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpand /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -490,12 +490,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -512,7 +512,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsForwardingRulesetName=DnsForwardingRulesetName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -530,12 +530,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -547,7 +547,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs index 7206e05fbfd5..238eb14cd0a8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a virtual network link to a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}/virtualNetworkLinks/{virtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a virtual network link for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.VirtualNetworkLinkPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.VirtualNetworkLinkPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -109,8 +109,8 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde ReadOnly = false, Description = @"Metadata attached to the virtual network link.", SerializedName = @"metadata", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLinkPatchPropertiesMetadata Metadata { get => _parametersBody.Metadata ?? null /* object */; set => _parametersBody.Metadata = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -154,24 +154,24 @@ public partial class UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIde /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -458,12 +458,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -480,7 +480,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -498,12 +498,12 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -515,7 +515,7 @@ public UpdateAzDnsForwardingRulesetVirtualNetworkLink_UpdateViaIdentityExpanded( return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs index cb32b9958a5a..488237f45a05 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [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.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +72,8 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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")] @@ -176,12 +176,12 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -200,32 +200,32 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateExpanded : global::Syste ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +488,12 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +510,7 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +528,12 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +545,7 @@ public UpdateAzDnsForwardingRuleset_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs index f79469a30c08..fbc86b54433f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}" /// [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.Api20220701.IDnsForwardingRuleset))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS forwarding ruleset.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsForwardingRulesets/{dnsForwardingRulesetName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS forwarding ruleset PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsForwardingRulesetPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsForwardingRulesetPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -72,8 +72,8 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"The reference to the DNS resolver outbound endpoints that are used to route DNS queries matching the forwarding rules in the ruleset to the target DNS servers.", SerializedName = @"dnsResolverOutboundEndpoints", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource[] DnsResolverOutboundEndpoint { get => _parametersBody.DnsResolverOutboundEndpoint ?? null /* arrayOf */; set => _parametersBody.DnsResolverOutboundEndpoint = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.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")] @@ -161,32 +161,32 @@ public partial class UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded : gl ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRulesetPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -466,12 +466,12 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -488,7 +488,7 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -506,12 +506,12 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -523,7 +523,7 @@ public UpdateAzDnsForwardingRuleset_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs new file mode 100644 index 000000000000..93ebef125821 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateExpanded.cs @@ -0,0 +1,550 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver domain list. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverDomainList_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverDomainList_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver domain list for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatch(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [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 domains in the domain list. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The domains in the domain list.")] + [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 domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + public string[] Domain { get => _parametersBody.Domain ?? null /* arrayOf */; set => _parametersBody.Domain = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver domain list. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver domain list.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver domain list.", + SerializedName = @"dnsResolverDomainListName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverDomainListName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Tags for DNS resolver domain list. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS resolver domain list.")] + [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 = @"Tags for DNS resolver domain list.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverDomainList_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverDomainList_UpdateExpanded Clone() + { + var clone = new UpdateAzDnsResolverDomainList_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverDomainListsUpdate(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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverDomainList_UpdateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..ed8d5179fe43 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded.cs @@ -0,0 +1,528 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver domain list. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverDomainList_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver domain list.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverDomainLists/{dnsResolverDomainListName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver domain list for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverDomainListPatch(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [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 domains in the domain list. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The domains in the domain list.")] + [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 domains in the domain list.", + SerializedName = @"domains", + PossibleTypes = new [] { typeof(string) })] + public string[] Domain { get => _parametersBody.Domain ?? null /* arrayOf */; set => _parametersBody.Domain = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tags for DNS resolver domain list. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS resolver domain list.")] + [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 = @"Tags for DNS resolver domain list.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainListPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverDomainListsUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverDomainListsUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverDomainListName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverDomainListName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverDomainListsUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverDomainListName ?? 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverDomainList_UpdateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs index 31bd79a60489..395cb18c55f1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/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.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -175,12 +175,12 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -199,32 +199,32 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateExpanded : global: ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +488,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +510,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +528,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +545,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs index 0555239654ad..d3ec745a5976 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/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.Api20220701.IInboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an inbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/inboundEndpoints/{inboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an inbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.InboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.InboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpande ReadOnly = false, Description = @"Tags for inbound endpoint.", SerializedName = @"tags", - 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; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -457,12 +457,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -479,7 +479,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -497,12 +497,12 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -514,7 +514,7 @@ public UpdateAzDnsResolverInboundEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs index 89bb60f0d186..cf0fb1296773 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverOutboundEndpoint_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -175,12 +175,12 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -199,32 +199,32 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded : global ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -488,12 +488,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -510,7 +510,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, DnsResolverName=DnsResolverName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -528,12 +528,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -545,7 +545,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs index b367dcb5ed02..839bbd06d281 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates an outbound endpoint for a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}/outboundEndpoints/{outboundEndpointName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes an outbound endpoint for a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.OutboundEndpointPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.OutboundEndpointPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpand ReadOnly = false, Description = @"Tags for outbound endpoint.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpointPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -457,12 +457,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -479,7 +479,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -497,12 +497,12 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -514,7 +514,7 @@ public UpdateAzDnsResolverOutboundEndpoint_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs new file mode 100644 index 000000000000..6c3fab7fa216 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded.cs @@ -0,0 +1,612 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS security rule. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS security rule for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatch(); + + /// The response code for block actions. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The response code for block actions.")] + [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 response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode ActionBlockResponseCode { get => _parametersBody.ActionBlockResponseCode ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); set => _parametersBody.ActionBlockResponseCode = value; } + + /// The type of action to take. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] + [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 type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType ActionType { get => _parametersBody.ActionType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); set => _parametersBody.ActionType = value; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "DNS resolver policy domains lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = value; } + + /// The state of DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The state of DNS security 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, + ReadOnly = false, + Description = @"The state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState DnsSecurityRuleState { get => _parametersBody.DnsSecurityRuleState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); set => _parametersBody.DnsSecurityRuleState = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS security rule.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS security rule.", + SerializedName = @"dnsSecurityRuleName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsSecurityRuleName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The priority of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The priority of the DNS security 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, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + public int Priority { get => _parametersBody.Priority ?? default(int); set => _parametersBody.Priority = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Tags for DNS security rule. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS security 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, + ReadOnly = false, + Description = @"Tags for DNS security rule.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsSecurityRulesUpdate(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, 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,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + 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, DnsResolverPolicyName=DnsResolverPolicyName, 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 } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..4973b37848c3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded.cs @@ -0,0 +1,582 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS security rule. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS security rule.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/dnsSecurityRules/{dnsSecurityRuleName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS security rule for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsSecurityRulePatch(); + + /// The response code for block actions. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The response code for block actions.")] + [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 response code for block actions.", + SerializedName = @"blockResponseCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode ActionBlockResponseCode { get => _parametersBody.ActionBlockResponseCode ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode)""); set => _parametersBody.ActionBlockResponseCode = value; } + + /// The type of action to take. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The type of action to take.")] + [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 type of action to take.", + SerializedName = @"actionType", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType ActionType { get => _parametersBody.ActionType ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType)""); set => _parametersBody.ActionType = value; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// DNS resolver policy domains lists that the DNS security rule applies to. + [global::System.Management.Automation.AllowEmptyCollection] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "DNS resolver policy domains lists that the DNS security rule applies to.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"DNS resolver policy domains lists that the DNS security rule applies to.", + SerializedName = @"dnsResolverDomainLists", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] DnsResolverDomainList { get => _parametersBody.DnsResolverDomainList ?? null /* arrayOf */; set => _parametersBody.DnsResolverDomainList = value; } + + /// The state of DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The state of DNS security rule.")] + [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 state of DNS security rule.", + SerializedName = @"dnsSecurityRuleState", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState))] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState DnsSecurityRuleState { get => _parametersBody.DnsSecurityRuleState ?? ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState)""); set => _parametersBody.DnsSecurityRuleState = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The priority of the DNS security rule. + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The priority of the DNS security 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, + ReadOnly = false, + Description = @"The priority of the DNS security rule.", + SerializedName = @"priority", + PossibleTypes = new [] { typeof(int) })] + public int Priority { get => _parametersBody.Priority ?? default(int); set => _parametersBody.Priority = value; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tags for DNS security rule. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS security 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, + ReadOnly = false, + Description = @"Tags for DNS security rule.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRulePatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsSecurityRulesUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsSecurityRulesUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsSecurityRuleName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsSecurityRuleName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsSecurityRulesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsSecurityRuleName ?? 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet + /// class. + /// + public UpdateAzDnsResolverPolicyDnsSecurityRule_UpdateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs new file mode 100644 index 000000000000..2241a0790cbe --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded.cs @@ -0,0 +1,557 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver policy virtual network link. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatch(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private string _dnsResolverPolicyName; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string DnsResolverPolicyName { get => this._dnsResolverPolicyName; set => this._dnsResolverPolicyName = 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// + /// The name of the DNS resolver policy virtual network link for the DNS resolver policy. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy virtual network link for the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy virtual network link for the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyVirtualNetworkLinkName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyVirtualNetworkLinkName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Tags for the DNS resolver policy virtual network link. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for the DNS resolver policy virtual network link.")] + [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 = @"Tags for the DNS resolver policy virtual network link.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.DnsResolverPolicyName = this.DnsResolverPolicyName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverPolicyVirtualNetworkLinksUpdate(SubscriptionId, ResourceGroupName, DnsResolverPolicyName, 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,DnsResolverPolicyName=DnsResolverPolicyName,Name=Name,IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null,body=_parametersBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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, DnsResolverPolicyName=DnsResolverPolicyName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + 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, DnsResolverPolicyName=DnsResolverPolicyName, 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 } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..92be60468a89 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded.cs @@ -0,0 +1,523 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver policy virtual network link. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy virtual network link.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}/virtualNetworkLinks/{dnsResolverPolicyVirtualNetworkLinkName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy virtual network link for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyVirtualNetworkLinkPatch(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tags for the DNS resolver policy virtual network link. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for the DNS resolver policy virtual network link.")] + [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 = @"Tags for the DNS resolver policy virtual network link.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLinkPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPolicyVirtualNetworkLinksUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPolicyVirtualNetworkLinksUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyVirtualNetworkLinkName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyVirtualNetworkLinkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPolicyVirtualNetworkLinksUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? null, InputObject.DnsResolverPolicyVirtualNetworkLinkName ?? 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the + /// cmdlet class. + /// + public UpdateAzDnsResolverPolicyVirtualNetworkLink_UpdateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs new file mode 100644 index 000000000000..a4615aa5c705 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateExpanded.cs @@ -0,0 +1,538 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver policy. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicy_UpdateExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicy_UpdateExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatch(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// Backing field for property. + private string _name; + + /// The name of the DNS resolver policy. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the DNS resolver policy.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the DNS resolver policy.", + SerializedName = @"dnsResolverPolicyName", + PossibleTypes = new [] { typeof(string) })] + [global::System.Management.Automation.Alias("DnsResolverPolicyName")] + [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; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// The name of the resource group. The name is case insensitive. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription. The value must be an UUID.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Tags for DNS resolver policy. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS resolver policy.")] + [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 = @"Tags for DNS resolver policy.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverPolicy_UpdateExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicy_UpdateExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicy_UpdateExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.Name = this.Name; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DnsResolverPoliciesUpdate(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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverPolicy_UpdateExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs new file mode 100644 index 000000000000..30e1528af45e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded.cs @@ -0,0 +1,516 @@ +// 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.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Extensions; + using System; + + /// Updates a DNS resolver policy. + /// + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolverPolicy_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver policy.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolverPolicies/{dnsResolverPolicyName}", ApiVersion = "2023-07-01-preview")] + public partial class UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Describes a DNS resolver policy for PATCH operation. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPolicyPatch(); + + /// 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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// 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)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.DnsResolver Client => Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// 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] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private string _ifMatch; + + /// + /// ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent + /// accidentally overwriting any concurrent changes. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.")] + [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"ETag of the resource. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes.", + SerializedName = @"If-Match", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Header)] + public string IfMatch { get => this._ifMatch; set => this._ifMatch = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Tags for DNS resolver policy. + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.ExportAs(typeof(global::System.Collections.Hashtable))] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tags for DNS resolver policy.")] + [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 = @"Tags for DNS resolver policy.", + SerializedName = @"tags", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (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) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets.UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded Clone() + { + var clone = new UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._parametersBody = this._parametersBody; + clone.IfMatch = this.IfMatch; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DnsResolverPoliciesUpdate' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + 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) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DnsResolverPoliciesUpdateViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, _parametersBody, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.DnsResolverPolicyName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DnsResolverPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DnsResolverPoliciesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DnsResolverPolicyName ?? 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}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public UpdateAzDnsResolverPolicy_UpdateViaIdentityExpanded() + { + + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api50.IErrorResponse + /// 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) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + 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 }) + { + 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 }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs index 3de689594309..18e500331006 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolver_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -161,12 +161,12 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem /// Backing field for property. private string _subscriptionId; - /// The ID of the target subscription. - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + /// The ID of the target subscription. The value must be an UUID. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription. The value must be an UUID.")] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.Info( Required = true, ReadOnly = false, - Description = @"The ID of the target subscription.", + Description = @"The ID of the target subscription. The value must be an UUID.", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] [Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.DefaultInfo( @@ -185,32 +185,32 @@ public partial class UpdateAzDnsResolver_UpdateExpanded : global::System.Managem ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -473,12 +473,12 @@ public UpdateAzDnsResolver_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -495,7 +495,7 @@ public UpdateAzDnsResolver_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -513,12 +513,12 @@ public UpdateAzDnsResolver_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -530,7 +530,7 @@ public UpdateAzDnsResolver_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs index 2585035bb836..b9e276c92db8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/cmdlets/UpdateAzDnsResolver_UpdateViaIdentityExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDnsResolver_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver))] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Description(@"Updates a DNS resolver.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2022-07-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsResolvers/{dnsResolverName}", ApiVersion = "2023-07-01-preview")] public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Describes a DNS resolver for PATCH operation. - private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.DnsResolverPatch(); + private Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatch _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.DnsResolverPatch(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -146,32 +146,32 @@ public partial class UpdateAzDnsResolver_UpdateViaIdentityExpanded : global::Sys ReadOnly = false, Description = @"Tags for DNS Resolver.", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPatchTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -451,12 +451,12 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ICloudError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ICloudError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -473,7 +473,7 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -491,12 +491,12 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -508,7 +508,7 @@ public UpdateAzDnsResolver_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver WriteObject((await response)); } } diff --git a/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index a7b98268b217..a7917ba370ba 100644 --- a/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/DnsResolver/DnsResolver.Autorest/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); } - string version = Convert.ToString(@"0.2.1"); + string version = Convert.ToString(@"0.2.9"); // 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/DnsResolver.Autorest/help/Az.DnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/help/Az.DnsResolver.md index fde6e122b530..c6738c8e318c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Az.DnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Az.DnsResolver.md @@ -23,12 +23,24 @@ Gets properties of a virtual network link to a DNS forwarding ruleset. ### [Get-AzDnsResolver](Get-AzDnsResolver.md) Gets properties of a DNS resolver. +### [Get-AzDnsResolverDomainList](Get-AzDnsResolverDomainList.md) +Gets properties of a DNS resolver domain list. + ### [Get-AzDnsResolverInboundEndpoint](Get-AzDnsResolverInboundEndpoint.md) Gets properties of an inbound endpoint for a DNS resolver. ### [Get-AzDnsResolverOutboundEndpoint](Get-AzDnsResolverOutboundEndpoint.md) Gets properties of an outbound endpoint for a DNS resolver. +### [Get-AzDnsResolverPolicy](Get-AzDnsResolverPolicy.md) +Gets properties of a DNS resolver policy. + +### [Get-AzDnsResolverPolicyDnsSecurityRule](Get-AzDnsResolverPolicyDnsSecurityRule.md) +Gets properties of a DNS security rule for a DNS resolver policy. + +### [Get-AzDnsResolverPolicyVirtualNetworkLink](Get-AzDnsResolverPolicyVirtualNetworkLink.md) +Gets properties of a DNS resolver policy virtual network link. + ### [New-AzDnsForwardingRuleset](New-AzDnsForwardingRuleset.md) Creates or updates a DNS forwarding ruleset. @@ -41,6 +53,9 @@ Creates or updates a virtual network link to a DNS forwarding ruleset. ### [New-AzDnsResolver](New-AzDnsResolver.md) Creates or updates a DNS resolver. +### [New-AzDnsResolverDomainList](New-AzDnsResolverDomainList.md) +Creates or updates a DNS resolver domain list. + ### [New-AzDnsResolverInboundEndpoint](New-AzDnsResolverInboundEndpoint.md) Creates or updates an inbound endpoint for a DNS resolver. @@ -50,6 +65,15 @@ Create a in-memory object for IPConfiguration ### [New-AzDnsResolverOutboundEndpoint](New-AzDnsResolverOutboundEndpoint.md) Creates or updates an outbound endpoint for a DNS resolver. +### [New-AzDnsResolverPolicy](New-AzDnsResolverPolicy.md) +Creates or updates a DNS resolver policy. + +### [New-AzDnsResolverPolicyDnsSecurityRule](New-AzDnsResolverPolicyDnsSecurityRule.md) +Creates or updates a DNS security rule for a DNS resolver policy. + +### [New-AzDnsResolverPolicyVirtualNetworkLink](New-AzDnsResolverPolicyVirtualNetworkLink.md) +Creates or updates a DNS resolver policy virtual network link. + ### [New-AzDnsResolverTargetDnsServerObject](New-AzDnsResolverTargetDnsServerObject.md) Create a in-memory object for Target DNS server @@ -70,6 +94,10 @@ WARNING: This operation cannot be undone. Deletes a DNS resolver. WARNING: This operation cannot be undone. +### [Remove-AzDnsResolverDomainList](Remove-AzDnsResolverDomainList.md) +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + ### [Remove-AzDnsResolverInboundEndpoint](Remove-AzDnsResolverInboundEndpoint.md) Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. @@ -78,6 +106,18 @@ WARNING: This operation cannot be undone. Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. +### [Remove-AzDnsResolverPolicy](Remove-AzDnsResolverPolicy.md) +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicyDnsSecurityRule](Remove-AzDnsResolverPolicyDnsSecurityRule.md) +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicyVirtualNetworkLink](Remove-AzDnsResolverPolicyVirtualNetworkLink.md) +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + ### [Update-AzDnsForwardingRuleset](Update-AzDnsForwardingRuleset.md) Updates a DNS forwarding ruleset. @@ -90,9 +130,21 @@ Updates a virtual network link to a DNS forwarding ruleset. ### [Update-AzDnsResolver](Update-AzDnsResolver.md) Updates a DNS resolver. +### [Update-AzDnsResolverDomainList](Update-AzDnsResolverDomainList.md) +Updates a DNS resolver domain list. + ### [Update-AzDnsResolverInboundEndpoint](Update-AzDnsResolverInboundEndpoint.md) Updates an inbound endpoint for a DNS resolver. ### [Update-AzDnsResolverOutboundEndpoint](Update-AzDnsResolverOutboundEndpoint.md) Updates an outbound endpoint for a DNS resolver. +### [Update-AzDnsResolverPolicy](Update-AzDnsResolverPolicy.md) +Updates a DNS resolver policy. + +### [Update-AzDnsResolverPolicyDnsSecurityRule](Update-AzDnsResolverPolicyDnsSecurityRule.md) +Updates a DNS security rule. + +### [Update-AzDnsResolverPolicyVirtualNetworkLink](Update-AzDnsResolverPolicyVirtualNetworkLink.md) +Updates a DNS resolver policy virtual network link. + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRuleset.md index 49039d5beefc..6629f2a77c98 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRuleset.md @@ -173,6 +173,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -257,9 +258,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetForwardingRule.md index d99ab6e54d6b..e8a1c1220ca1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetForwardingRule.md @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -182,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md index 77ddd3495c40..7c6ffb5c5d6c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -182,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolver.md index e1e184576957..fabe09332dc5 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolver.md @@ -177,6 +177,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -261,9 +262,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..a60faba3d939 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverDomainList.md @@ -0,0 +1,206 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Get-AzDnsResolverDomainList + +## SYNOPSIS +Gets properties of a DNS resolver domain list. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolverDomainList [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverDomainList -InputObject [-DefaultProfile ] + [] +``` + +### List +``` +Get-AzDnsResolverDomainList -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver domain list. + +## EXAMPLES + +### Example 1: List all DNS Resolver Domain Lists under the subscription +```powershell +Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverdomainlisttestresolver2422 Microsoft.Network/dnsResolverDomainLists "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverdomainlisttestresolver2654 Microsoft.Network/dnsResolverDomainLists "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverdomainlisttestresolver8416 Microsoft.Network/dnsResolverDomainLists "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverdomainlisttestresolver5036 Microsoft.Network/dnsResolverDomainLists "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverdomainlisttestresolver3718 Microsoft.Network/dnsResolverDomainLists "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverdomainlisttestresolver2758 Microsoft.Network/dnsResolverDomainLists "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverdomainlisttestresolver7108 Microsoft.Network/dnsResolverDomainLists "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverdomainlisttestresolver7639 Microsoft.Network/dnsResolverDomainLists "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverdomainlisttestresolver5912 Microsoft.Network/dnsResolverDomainLists "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverdomainlisttestguli01 Microsoft.Network/dnsResolverDomainLists "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverdomainlisttestresolver9892 Microsoft.Network/dnsResolverDomainLists "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Domain Lists under the subscription. + +### Example 2: List all DNS Resolver Domain Lists under the resource group +```powershell +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000" +westus2 psdnsresolverdomainlistname34dp19g6 Microsoft.Network/dnsResolverDomainLists "0000c9d4-0000-0800-0000-604013990000" +westus2 psdnsresolverdomainlistname35m3jf0n Microsoft.Network/dnsResolverDomainLists "0000d0d4-0000-0800-0000-604013a80000" +``` + +This command gets all DNS Resolver Domain Lists under the resource group. + +### Example 3: Get single DNS Resolver by name +```powershell +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Domain List by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverInboundEndpoint.md index 9da3b783b46c..d6c67fca0fcc 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverInboundEndpoint.md @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -182,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverOutboundEndpoint.md index 247853524042..b0034cbe538a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverOutboundEndpoint.md @@ -144,6 +144,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -182,7 +183,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..f10b99f443a4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicy.md @@ -0,0 +1,259 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicy + +## SYNOPSIS +Gets properties of a DNS resolver policy. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolverPolicy [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicy -InputObject [-DefaultProfile ] [] +``` + +### List +``` +Get-AzDnsResolverPolicy -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [] +``` + +### List2 +``` +Get-AzDnsResolverPolicy -ResourceGroupName -VirtualNetworkName [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver policy. + +## EXAMPLES + +### Example 1: List all DNS Resolver Policies under the subscription +```powershell +Get-AzDnsResolverPolicy -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverpolicytestresolver2422 Microsoft.Network/dnsResolverPolicies "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverpolicytestresolver2654 Microsoft.Network/dnsResolverPolicies "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverpolicytestresolver8416 Microsoft.Network/dnsResolverPolicies "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverpolicytestresolver5036 Microsoft.Network/dnsResolverPolicies "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverpolicytestresolver3718 Microsoft.Network/dnsResolverPolicies "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverpolicytestresolver2758 Microsoft.Network/dnsResolverPolicies "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverpolicytestresolver7108 Microsoft.Network/dnsResolverPolicies "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverpolicytestresolver7639 Microsoft.Network/dnsResolverPolicies "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverpolicytestresolver5912 Microsoft.Network/dnsResolverPolicies "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverpolicytestguli01 Microsoft.Network/dnsResolverPolicies "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverpolicytestresolver9892 Microsoft.Network/dnsResolverPolicies "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Policies under the subscription. + +### Example 2: List all DNS Resolver Policies under the resource group +```powershell +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000" +westus2 psdnsresolverpolicyname34dp19g6 Microsoft.Network/dnsResolverPolicies "0000c9d4-0000-0800-0000-604013990000" +westus2 psdnsresolverpolicyname35m3jf0n Microsoft.Network/dnsResolverPolicies "0000d0d4-0000-0800-0000-604013a80000" +``` + +This command gets all DNS Resolver Policies under the resource group. + +### Example 3: Get single DNS Resolver by name +```powershell +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Policy by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List, List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1, List2 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List, List1 +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkName +The name of the virtual network. + +```yaml +Type: System.String +Parameter Sets: List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..2e512c97245c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,200 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Gets properties of a DNS security rule for a DNS resolver policy. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicyDnsSecurityRule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS security rule for a DNS resolver policy. + +## EXAMPLES + +### Example 1: List all DNS Security Rule under the dns resolver policy +```powershell +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnssecurityruletestresolver2422 Microsoft.Network/dnsSecurityRules "8b002671-0000-0800-0000-60386dc10000" +westus2 dnssecurityruletestresolver2654 Microsoft.Network/dnsSecurityRules "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnssecurityruletestresolver8416 Microsoft.Network/dnsSecurityRules "94008a5e-0000-0800-0000-603972f20000" +westus2 dnssecurityruletestresolver5036 Microsoft.Network/dnsSecurityRules "8b002f71-0000-0800-0000-60386df80000" +westus2 dnssecurityruletestresolver3718 Microsoft.Network/dnsSecurityRules "00009b95-0000-0800-0000-603e8b210000" +westus2 dnssecurityruletestresolver2758 Microsoft.Network/dnsSecurityRules "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnssecurityruletestresolver7108 Microsoft.Network/dnsSecurityRules "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnssecurityruletestresolver7639 Microsoft.Network/dnsSecurityRules "8b00b670-0000-0800-0000-60386b010000" +westus2 dnssecurityruletestresolver5912 Microsoft.Network/dnsSecurityRules "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnssecurityruletestguli01 Microsoft.Network/dnsSecurityRules "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnssecurityruletestresolver9892 Microsoft.Network/dnsSecurityRules "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Security Rule under the dns resolver policy. + +### Example 2: Get single DNS Security Rule by name +```powershell +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnssecurityrulename33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Security Rule by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..4f208235847c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Get-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,200 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Gets properties of a DNS resolver policy virtual network link. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: List all DNS Resolver Policy Links under the dns resolver policy +```powershell +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverpolicylinktestresolver2422 Microsoft.Network/dnsResolverPolicyLinks "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverpolicylinktestresolver2654 Microsoft.Network/dnsResolverPolicyLinks "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverpolicylinktestresolver8416 Microsoft.Network/dnsResolverPolicyLinks "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverpolicylinktestresolver5036 Microsoft.Network/dnsResolverPolicyLinks "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverpolicylinktestresolver3718 Microsoft.Network/dnsResolverPolicyLinks "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverpolicylinktestresolver2758 Microsoft.Network/dnsResolverPolicyLinks "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverpolicylinktestresolver7108 Microsoft.Network/dnsResolverPolicyLinks "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverpolicylinktestresolver7639 Microsoft.Network/dnsResolverPolicyLinks "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverpolicylinktestresolver5912 Microsoft.Network/dnsResolverPolicyLinks "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverpolicylinktestguli01 Microsoft.Network/dnsResolverPolicyLinks "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverpolicylinktestresolver9892 Microsoft.Network/dnsResolverPolicyLinks "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Policy Links under the dns resolver policy. + +### Example 2: Get single DNS Resolver Policy Link by name +```powershell +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Policy Link by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRuleset.md index ce798307add6..22cd7433e755 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRuleset.md @@ -90,7 +90,7 @@ 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.Api20220701.ISubResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Parameter Sets: (All) Aliases: @@ -197,6 +197,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -263,7 +264,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetForwardingRule.md index b9f58d99062d..641fabeb11c8 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetForwardingRule.md @@ -197,6 +197,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -215,7 +216,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.Api20220701.ITargetDnsServer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] Parameter Sets: (All) Aliases: @@ -264,7 +265,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md index 503df6a1e7f9..9e5e3f4ca980 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -194,6 +194,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -260,7 +261,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolver.md index bfe47f059349..2cf30de9a423 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolver.md @@ -178,6 +178,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -259,7 +260,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..db6ab56d7705 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverDomainList.md @@ -0,0 +1,268 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# New-AzDnsResolverDomainList + +## SYNOPSIS +Creates or updates a DNS resolver domain list. + +## SYNTAX + +``` +New-AzDnsResolverDomainList -Name -ResourceGroupName -Domain -Location + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver domain list. + +## EXAMPLES + +### Example 1: Create a DNS resolver domain list +```powershell +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverDomainList Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver domain list. + +### Example 2: Create a DNS resolver domain list with tag +```powershell +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverDomainList Microsoft.Network/dnsResolverPolicies "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver domain list with tag. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Domain +The domains in the domain list. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverIPConfigurationObject.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverIPConfigurationObject.md index 619404f11357..ae3bc7acd888 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverIPConfigurationObject.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverIPConfigurationObject.md @@ -89,7 +89,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverInboundEndpoint.md index c31a5998267e..8301ce87bf28 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverInboundEndpoint.md @@ -138,7 +138,7 @@ 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.Api20220701.IIPConfiguration[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] Parameter Sets: (All) Aliases: @@ -212,6 +212,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -278,7 +279,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverOutboundEndpoint.md index 68d3e69ae740..976c13bafebe 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverOutboundEndpoint.md @@ -208,6 +208,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -274,7 +275,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..27b8d765017e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicy.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicy + +## SYNOPSIS +Creates or updates a DNS resolver policy. + +## SYNTAX + +``` +New-AzDnsResolverPolicy -Name -ResourceGroupName -Location + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver policy. + +## EXAMPLES + +### Example 1: Create a DNS resolver policy +```powershell +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver policy. + +### Example 2: Create a DNS resolver policy with tag +```powershell +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver policy with tag. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..7b1e3bf87329 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,348 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Creates or updates a DNS security rule for a DNS resolver policy. + +## SYNTAX + +``` +New-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName -DnsResolverDomainList -Location -Priority + [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsSecurityRuleState ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS security rule for a DNS resolver policy. + +## EXAMPLES + +### Example 1: Create a DNS security rule +```powershell +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} + +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS security rule. + +### Example 2: Create a DNS security rule with tag +```powershell +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS security rule with tag. + +## PARAMETERS + +### -ActionBlockResponseCode +The response code for block actions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionType +The type of action to take. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverDomainList +DNS resolver policy domains lists that the DNS security rule applies to. +To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsSecurityRuleState +The state of DNS security rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the DNS security rule. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..be58959bcaa3 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,284 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Creates or updates a DNS resolver policy virtual network link. + +## SYNTAX + +``` +New-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName -Location -VirtualNetworkId [-SubscriptionId ] + [-IfMatch ] [-IfNoneMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: Create a DNS resolver policy link +```powershell +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver policy link. + +### Example 2: Create a DNS resolver policy link with tag +```powershell +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver policy link with tag. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverTargetDnsServerObject.md b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverTargetDnsServerObject.md index bc5edc0f7dc8..1cbfd42bdb5f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverTargetDnsServerObject.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/New-AzDnsResolverTargetDnsServerObject.md @@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRuleset.md index a605ca71fd46..fc79632a1765 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRuleset.md @@ -178,6 +178,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetForwardingRule.md index 42f426f9dc51..cb37f3a43acd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetForwardingRule.md @@ -162,6 +162,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md index 506eeb2d36e7..44c3a37e02a0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -191,6 +191,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolver.md index 95107b22cade..172a60dfaa73 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolver.md @@ -175,6 +175,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..3c116f609769 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverDomainList.md @@ -0,0 +1,238 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Remove-AzDnsResolverDomainList + +## SYNOPSIS +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverDomainList -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: Remove a DNS Resolver Domain List by name +```powershell +Remove-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` + +This command removes a DNS Resolver Domain List by name. + +### Example 2: Remove a DNS Resolver Domain List by identity +```powershell +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject +``` + +This command removes a DNS Resolver Domain List by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverInboundEndpoint.md index 93624ea946b3..c8f19c954e3c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverInboundEndpoint.md @@ -192,6 +192,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverOutboundEndpoint.md index 09cfdfcd00d7..3f7ed35f59f6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverOutboundEndpoint.md @@ -191,6 +191,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..94284e12194e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicy.md @@ -0,0 +1,238 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicy + +## SYNOPSIS +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicy -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: Remove a Dns Resolver Policy by name +```powershell +Remove-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` + +This command removes a Dns Resolver Policy by name. + +### Example 2: Remove a Dns Resolver Policy by identity +```powershell +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject +``` + +This command removes a Dns Resolver Policy by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..d03e22a60a9c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: Remove a DNS Security Rule by name +```powershell +Remove-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +``` + +This command removes a DNS Security Rule by name. + +### Example 2: Remove a DNS Security Rule by identity +```powershell +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject +``` + +This command removes a DNS Security Rule by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..d5ea1d717c3d --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Remove-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,253 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: Remove a DNS Resolver Policy Link by name +```powershell +Remove-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +``` + +This command removes a DNS Resolver Policy Link by name. + +### Example 2: Remove a DNS Resolver Policy Link by identity +```powershell +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject +``` + +This command removes a DNS Resolver Policy Link by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRuleset.md index 9a64534b0c01..be115f63be5e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRuleset.md @@ -96,7 +96,7 @@ 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.Api20220701.ISubResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Parameter Sets: (All) Aliases: @@ -188,6 +188,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -256,7 +257,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetForwardingRule.md index 208482353b9b..683e30cf55a9 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetForwardingRule.md @@ -188,6 +188,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -206,7 +207,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.Api20220701.ITargetDnsServer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] Parameter Sets: (All) Aliases: @@ -257,7 +258,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md index 67a62f035f94..6cedf37408e0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -202,6 +202,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -255,7 +256,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolver.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolver.md index a265ee98e39c..7daea48d8451 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolver.md @@ -170,6 +170,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -238,7 +239,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..e1fd5d26f657 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverDomainList.md @@ -0,0 +1,263 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Update-AzDnsResolverDomainList + +## SYNOPSIS +Updates a DNS resolver domain list. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-Domain ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverDomainList -InputObject [-IfMatch ] [-Domain ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver domain list. + +## EXAMPLES + +### Example 1: Update an existing DNS Resolver Domain List by name +```powershell +Update-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Domain List by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver Domain List by identity +```powershell +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Domain List by identity ( removing tag ). + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Domain +The domains in the domain list. + +```yaml +Type: System.String[] +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS resolver domain list. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverInboundEndpoint.md index ebad7a4d33e4..266c9b511581 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverInboundEndpoint.md @@ -186,6 +186,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -254,7 +255,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverOutboundEndpoint.md index 07cd1abdc5fc..8bdcd92a63ff 100644 --- a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverOutboundEndpoint.md @@ -186,6 +186,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -254,7 +255,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..88ae55a374ff --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicy.md @@ -0,0 +1,248 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicy + +## SYNOPSIS +Updates a DNS resolver policy. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicy -InputObject [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver policy. + +## EXAMPLES + +### Example 1: Update an existing DNS Resolver Policy by name +```powershell +Update-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver Policy by identity +```powershell +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy by identity ( removing tag ). + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS resolver policy. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..f4281d5c0195 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,343 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Updates a DNS security rule. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsResolverDomainList ] [-DnsSecurityRuleState ] [-Priority ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject [-IfMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsResolverDomainList ] [-DnsSecurityRuleState ] [-Priority ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS security rule. + +## EXAMPLES + +### Example 1: Update an existing DNS Security Rule by name +```powershell +Update-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Security Rules by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver by identity +```powershell +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Security Rules by identity ( removing tag ). + +## PARAMETERS + +### -ActionBlockResponseCode +The response code for block actions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionType +The type of action to take. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverDomainList +DNS resolver policy domains lists that the DNS security rule applies to. +To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsSecurityRuleState +The state of DNS security rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the DNS security rule. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS security rule. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..3ce1298199fe --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/help/Update-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,263 @@ +--- +external help file: +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Updates a DNS resolver policy virtual network link. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-IfMatch ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Updates a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: Update an existing DNS Resolver Policy Link by name +```powershell +Update-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy Links by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver by identity +```powershell +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy Links by identity ( removing tag ). + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for the DNS resolver policy virtual network link. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS + diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Constants.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Constants.ps1 index 57c35dc50f84..1f5822cfebd3 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Constants.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/test/Constants.ps1 @@ -1,5 +1,5 @@ $NRP_SIMULATOR_URI = "https://eastus2.test.azuremresolver.net:9002" -$LOCATION = "eastus2" -$SUBSCRIPTION_ID = "0e5a46b1-de0b-4ec3-a5d7-dda908b4e076" +$LOCATION = "westus2" +$SUBSCRIPTION_ID = "91ab65d2-c73f-4768-89d0-b061815f258b" $RESOURCE_GROUP_NAME = "rg-dev-eastus2-sdk-powershell" $SUBNET_NAME = "snet-sim2" \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRuleset.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRuleset.Recording.json index 1648c7aa4a56..8325dae990ff 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRuleset.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRuleset.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9\",\"startTime\":\"2022-02-16T18:31:31.0000000Z\",\"endTime\":\"2022-02-16T18:31:33.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NmY3ZGNjLTA4ZWQtNGViMS1iZTNjLTI4MWYxNTQxODU1NyJ9\",\"startTime\":\"2022-02-16T18:31:31.0000000Z\",\"endTime\":\"2022-02-16T18:31:33.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dcad738d-e6a2-47b6-b56f-20dbbcd81c0b\"},\"etag\":\"\\\"03005d75-0000-0200-0000-620d43050000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28\",\"name\":\"psdnsresolvername28\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:31:31.4990792Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:31:31.4990792Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dcad738d-e6a2-47b6-b56f-20dbbcd81c0b\"},\"etag\":\"\\\"03005d75-0000-0200-0000-620d43050000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28\",\"name\":\"psdnsresolvername28\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:31:31.4990792Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:31:31.4990792Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=\",\"startTime\":\"2022-02-16T18:31:39.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=\",\"startTime\":\"2022-02-16T18:31:39.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=\",\"startTime\":\"2022-02-16T18:31:39.0000000Z\",\"endTime\":\"2022-02-16T18:31:45.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNTlkNGQ1Y2ItYTczYi00YWZjLWJlY2QtMjIxNTc5NWMyZTU4In0=\",\"startTime\":\"2022-02-16T18:31:39.0000000Z\",\"endTime\":\"2022-02-16T18:31:45.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a7a41a31-d647-44ae-bc3d-a2d4b1bd956d\"},\"etag\":\"\\\"010091fe-0000-0200-0000-620d43110000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28\",\"name\":\"psoutboundendpointname28\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T18:31:38.9605171Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:31:38.9605171Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a7a41a31-d647-44ae-bc3d-a2d4b1bd956d\"},\"etag\":\"\\\"010091fe-0000-0200-0000-620d43110000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28\",\"name\":\"psoutboundendpointname28\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T18:31:38.9605171Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:31:38.9605171Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9\",\"startTime\":\"2022-02-16T18:32:16.0000000Z\",\"endTime\":\"2022-02-16T18:32:18.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijk1YjllM2Y4LTQ1ODAtNDk2MS04ZWJiLTUzZDdlZDlkZjNmNiJ9\",\"startTime\":\"2022-02-16T18:32:16.0000000Z\",\"endTime\":\"2022-02-16T18:32:18.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,14 +419,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"956ff54b-6349-4199-bc97-7df12aa34299\"},\"etag\":\"\\\"0100147b-0000-0200-0000-620d43320000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28\",\"name\":\"psdnsforwardingrulesetname28\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:16.8267954Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:16.8267954Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"956ff54b-6349-4199-bc97-7df12aa34299\"},\"etag\":\"\\\"0100147b-0000-0200-0000-620d43320000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28\",\"name\":\"psdnsforwardingrulesetname28\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:16.8267954Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:16.8267954Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Get-AzDnsForwardingRuleset+[NoContext]+Get single DNS Forwarding Ruleset by name, expect DNS Forwarding Ruleset by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -462,15 +462,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"956ff54b-6349-4199-bc97-7df12aa34299\"},\"etag\":\"\\\"0100147b-0000-0200-0000-620d43320000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28\",\"name\":\"psdnsforwardingrulesetname28\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:16.8267954Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:16.8267954Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28/outboundEndpoints/psoutboundendpointname28\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"956ff54b-6349-4199-bc97-7df12aa34299\"},\"etag\":\"\\\"0100147b-0000-0200-0000-620d43320000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname28\",\"name\":\"psdnsforwardingrulesetname28\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:16.8267954Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:16.8267954Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -546,14 +546,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9\",\"startTime\":\"2022-02-16T18:32:25.0000000Z\",\"endTime\":\"2022-02-16T18:32:29.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE1YWIzOGJjLTg5ZjEtNGM3OS04MzMwLTM4MDgyNDNjM2ZkNyJ9\",\"startTime\":\"2022-02-16T18:32:25.0000000Z\",\"endTime\":\"2022-02-16T18:32:29.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -589,15 +589,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"68999fe1-aea4-414a-81f6-7afa13d4ee70\"},\"etag\":\"\\\"03009075-0000-0200-0000-620d433d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29\",\"name\":\"psdnsresolvername29\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:25.3876427Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:25.3876427Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"68999fe1-aea4-414a-81f6-7afa13d4ee70\"},\"etag\":\"\\\"03009075-0000-0200-0000-620d433d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29\",\"name\":\"psdnsresolvername29\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:25.3876427Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:25.3876427Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -673,14 +673,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=\",\"startTime\":\"2022-02-16T18:32:33.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=\",\"startTime\":\"2022-02-16T18:32:33.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -716,14 +716,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=\",\"startTime\":\"2022-02-16T18:32:33.0000000Z\",\"endTime\":\"2022-02-16T18:32:40.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZWVjM2RhYzEtMDIyNi00ZWI0LTljNTEtYzdkMDc3NTA1OTY0In0=\",\"startTime\":\"2022-02-16T18:32:33.0000000Z\",\"endTime\":\"2022-02-16T18:32:40.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -759,15 +759,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"76fd0e98-3d7d-48d8-9a36-d05e064d45f1\"},\"etag\":\"\\\"0100b3fe-0000-0200-0000-620d43470000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29\",\"name\":\"psoutboundendpointname29\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:33.1346321Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:33.1346321Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"76fd0e98-3d7d-48d8-9a36-d05e064d45f1\"},\"etag\":\"\\\"0100b3fe-0000-0200-0000-620d43470000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29\",\"name\":\"psoutboundendpointname29\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:33.1346321Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:33.1346321Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -843,14 +843,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9\",\"startTime\":\"2022-02-16T18:33:10.0000000Z\",\"endTime\":\"2022-02-16T18:33:13.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZiYWY3OTEzLTY2OTMtNGUzNy1iZDYyLTY3NTlhNWI2OGFiNSJ9\",\"startTime\":\"2022-02-16T18:33:10.0000000Z\",\"endTime\":\"2022-02-16T18:33:13.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -886,14 +886,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b3b4a7e4-706d-4fb8-9fa3-ca362340c28c\"},\"etag\":\"\\\"01001b7b-0000-0200-0000-620d43690000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29\",\"name\":\"psdnsforwardingrulesetname29\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:33:10.8551697Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:33:10.8551697Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b3b4a7e4-706d-4fb8-9fa3-ca362340c28c\"},\"etag\":\"\\\"01001b7b-0000-0200-0000-620d43690000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29\",\"name\":\"psdnsforwardingrulesetname29\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:33:10.8551697Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:33:10.8551697Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -929,7 +929,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b3b4a7e4-706d-4fb8-9fa3-ca362340c28c\"},\"etag\":\"\\\"01001b7b-0000-0200-0000-620d43690000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29\",\"name\":\"psdnsforwardingrulesetname29\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:33:10.8551697Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:33:10.8551697Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29/outboundEndpoints/psoutboundendpointname29\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b3b4a7e4-706d-4fb8-9fa3-ca362340c28c\"},\"etag\":\"\\\"01001b7b-0000-0200-0000-620d43690000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname29\",\"name\":\"psdnsforwardingrulesetname29\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:33:10.8551697Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:33:10.8551697Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRulesetForwardingRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRulesetForwardingRule.Recording.json index 85d44ad340a4..d823095dff07 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRulesetForwardingRule.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRulesetForwardingRule.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9\",\"startTime\":\"2022-02-16T22:07:19.0000000Z\",\"endTime\":\"2022-02-16T22:07:21.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZmMDg2ZDc2LTBhOTMtNGNlNy1iNzU1LWI5MzhkODNjODQ5MyJ9\",\"startTime\":\"2022-02-16T22:07:19.0000000Z\",\"endTime\":\"2022-02-16T22:07:21.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"2fcb649b-08f0-48bb-b1a4-326810d42aa0\"},\"etag\":\"\\\"0300fcc3-0000-0200-0000-620d75990000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40\",\"name\":\"psdnsresolvername40\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:07:18.9325346Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:07:18.9325346Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"2fcb649b-08f0-48bb-b1a4-326810d42aa0\"},\"etag\":\"\\\"0300fcc3-0000-0200-0000-620d75990000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40\",\"name\":\"psdnsresolvername40\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:07:18.9325346Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:07:18.9325346Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=\",\"startTime\":\"2022-02-16T22:07:27.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=\",\"startTime\":\"2022-02-16T22:07:27.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=\",\"startTime\":\"2022-02-16T22:07:27.0000000Z\",\"endTime\":\"2022-02-16T22:07:36.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGY2N2M0MTQtOGE3Zi00YTk2LWJlODYtNGYwMDVlNDA1M2RmIn0=\",\"startTime\":\"2022-02-16T22:07:27.0000000Z\",\"endTime\":\"2022-02-16T22:07:36.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dedb22bf-e84c-4e5b-aee0-9440934baef4\"},\"etag\":\"\\\"02003012-0000-0200-0000-620d75a80000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40\",\"name\":\"psoutboundendpointname40\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T22:07:27.0202389Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:07:27.0202389Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dedb22bf-e84c-4e5b-aee0-9440934baef4\"},\"etag\":\"\\\"02003012-0000-0200-0000-620d75a80000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40\",\"name\":\"psoutboundendpointname40\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T22:07:27.0202389Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:07:27.0202389Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9\",\"startTime\":\"2022-02-16T22:08:04.0000000Z\",\"endTime\":\"2022-02-16T22:08:06.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjEzN2Y5NThiLWI0ODgtNGFjZi1iN2Y4LTU2NjI2ZDllY2QzNSJ9\",\"startTime\":\"2022-02-16T22:08:04.0000000Z\",\"endTime\":\"2022-02-16T22:08:06.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,14 +419,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f112aa79-29e9-4f41-bda4-1094b27b9f1f\"},\"etag\":\"\\\"010043dc-0000-0200-0000-620d75c60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40\",\"name\":\"psdnsforwardingrulesetname40\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:04.588177Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:04.588177Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40/outboundEndpoints/psoutboundendpointname40\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f112aa79-29e9-4f41-bda4-1094b27b9f1f\"},\"etag\":\"\\\"010043dc-0000-0200-0000-620d75c60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40\",\"name\":\"psdnsforwardingrulesetname40\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:04.588177Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:04.588177Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2023-07-01-preview", "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": { @@ -457,14 +457,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"domainName\":\"psdomainName40.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400427c-0000-0200-0000-620d75ca0000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40\",\"name\":\"psdnsforwardingrulename40\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:10.7266842Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:10.7266842Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"domainName\":\"psdomainName40.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400427c-0000-0200-0000-620d75ca0000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40\",\"name\":\"psdnsforwardingrulename40\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:10.7266842Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:10.7266842Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+12": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+Get single forwarding rule by name, expect forwarding rule retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -500,15 +500,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"domainName\":\"psdomainName40.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400427c-0000-0200-0000-620d75ca0000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40\",\"name\":\"psdnsforwardingrulename40\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:10.7266842Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:10.7266842Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"domainName\":\"psdomainName40.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400427c-0000-0200-0000-620d75ca0000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname40/forwardingRules/psdnsforwardingrulename40\",\"name\":\"psdnsforwardingrulename40\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:10.7266842Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:10.7266842Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+1": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -584,14 +584,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9\",\"startTime\":\"2022-02-16T22:08:13.0000000Z\",\"endTime\":\"2022-02-16T22:08:14.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImMwZGMzNDVkLTMzMzItNGY4Zi05YTkzLTAyNTA1OTYxNTM1MSJ9\",\"startTime\":\"2022-02-16T22:08:13.0000000Z\",\"endTime\":\"2022-02-16T22:08:14.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -627,15 +627,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bc9ccf07-6aca-4c1d-9923-5fe90e0a20ac\"},\"etag\":\"\\\"030009c4-0000-0200-0000-620d75ce0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41\",\"name\":\"psdnsresolvername41\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:13.7136904Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:13.7136904Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bc9ccf07-6aca-4c1d-9923-5fe90e0a20ac\"},\"etag\":\"\\\"030009c4-0000-0200-0000-620d75ce0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41\",\"name\":\"psdnsresolvername41\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:13.7136904Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:13.7136904Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -711,14 +711,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=\",\"startTime\":\"2022-02-16T22:08:20.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=\",\"startTime\":\"2022-02-16T22:08:20.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -754,14 +754,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=\",\"startTime\":\"2022-02-16T22:08:20.0000000Z\",\"endTime\":\"2022-02-16T22:08:26.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiMmJiN2Y3NzgtZTJiNC00MGI4LWE5N2QtZTUwMWRlZDFhYzliIn0=\",\"startTime\":\"2022-02-16T22:08:20.0000000Z\",\"endTime\":\"2022-02-16T22:08:26.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -797,15 +797,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"960e6e7e-65c9-4949-bd25-642d1e6380ff\"},\"etag\":\"\\\"02006612-0000-0200-0000-620d75da0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41\",\"name\":\"psoutboundendpointname41\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:20.7674378Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:20.7674378Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"960e6e7e-65c9-4949-bd25-642d1e6380ff\"},\"etag\":\"\\\"02006612-0000-0200-0000-620d75da0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41\",\"name\":\"psoutboundendpointname41\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:20.7674378Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:20.7674378Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -881,14 +881,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9\",\"startTime\":\"2022-02-16T22:08:58.0000000Z\",\"endTime\":\"2022-02-16T22:09:00.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjhiZWNlY2QyLWJmOTItNDQxOC05YWUwLTQxYzYzOWYzMzdhOCJ9\",\"startTime\":\"2022-02-16T22:08:58.0000000Z\",\"endTime\":\"2022-02-16T22:09:00.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -924,14 +924,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"20fbfacb-f680-4c6c-9873-3876204a1b56\"},\"etag\":\"\\\"0100e5dc-0000-0200-0000-620d75fc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41\",\"name\":\"psdnsforwardingrulesetname41\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:58.2847679Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:58.2847679Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41/outboundEndpoints/psoutboundendpointname41\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"20fbfacb-f680-4c6c-9873-3876204a1b56\"},\"etag\":\"\\\"0100e5dc-0000-0200-0000-620d75fc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41\",\"name\":\"psdnsforwardingrulesetname41\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:58.2847679Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:58.2847679Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41?api-version=2023-07-01-preview", "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": { @@ -962,14 +962,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"domainName\":\"psdomainName41.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400667c-0000-0200-0000-620d76000000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41\",\"name\":\"psdnsforwardingrulename41\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:04.8456342Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:04.8456342Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"domainName\":\"psdomainName41.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400667c-0000-0200-0000-620d76000000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41\",\"name\":\"psdnsforwardingrulename41\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:04.8456342Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:04.8456342Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+12": { + "Get-AzDnsForwardingRulesetForwardingRule+[NoContext]+List all forwarding rules under the DNS forwarding ruleset, expect all forwarding rules retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1006,7 +1006,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"domainName\":\"psdomainName41.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400667c-0000-0200-0000-620d76000000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41\",\"name\":\"psdnsforwardingrulename41\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:04.8456342Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:04.8456342Z\",\"lastModifiedByType\":\"User\"}}]}", + "Content": "{\"value\":[{\"properties\":{\"domainName\":\"psdomainName41.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400667c-0000-0200-0000-620d76000000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname41/forwardingRules/psdnsforwardingrulename41\",\"name\":\"psdnsforwardingrulename41\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:04.8456342Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:04.8456342Z\",\"lastModifiedByType\":\"User\"}}]}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json index dbe3d3f960f6..46976feca7e0 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9\",\"startTime\":\"2022-02-17T06:59:08.0000000Z\",\"endTime\":\"2022-02-17T06:59:10.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNjdiNjQxLTg5MGMtNGZlNS05M2RmLThlOTUxNTU0MDk1MCJ9\",\"startTime\":\"2022-02-17T06:59:08.0000000Z\",\"endTime\":\"2022-02-17T06:59:10.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b7c1a2fe-d9e7-4b97-bc9f-e35286346fa9\"},\"etag\":\"\\\"0400e43b-0000-0200-0000-620df23e0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45\",\"name\":\"psdnsresolvername45\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:59:08.5054687Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:59:08.5054687Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b7c1a2fe-d9e7-4b97-bc9f-e35286346fa9\"},\"etag\":\"\\\"0400e43b-0000-0200-0000-620df23e0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45\",\"name\":\"psdnsresolvername45\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:59:08.5054687Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:59:08.5054687Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=\",\"startTime\":\"2022-02-17T06:59:16.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=\",\"startTime\":\"2022-02-17T06:59:16.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=\",\"startTime\":\"2022-02-17T06:59:16.0000000Z\",\"endTime\":\"2022-02-17T06:59:23.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiODA4NzliYzEtZTZlYi00ZTFhLTgzNmQtOWY4NDc5YmZkYWRmIn0=\",\"startTime\":\"2022-02-17T06:59:16.0000000Z\",\"endTime\":\"2022-02-17T06:59:23.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"53aa345f-61c7-4a00-a5cf-a2d9be5efc62\"},\"etag\":\"\\\"02005161-0000-0200-0000-620df24b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45\",\"name\":\"psoutboundendpointname45\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T06:59:16.2755844Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:59:16.2755844Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"53aa345f-61c7-4a00-a5cf-a2d9be5efc62\"},\"etag\":\"\\\"02005161-0000-0200-0000-620df24b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45\",\"name\":\"psoutboundendpointname45\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T06:59:16.2755844Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:59:16.2755844Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9\",\"startTime\":\"2022-02-17T06:59:54.0000000Z\",\"endTime\":\"2022-02-17T06:59:58.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6Ijc0ZjA3NjRmLTY2YTMtNDVmZS04MTI4LWMzZmM3YjQ1NTc4MSJ9\",\"startTime\":\"2022-02-17T06:59:54.0000000Z\",\"endTime\":\"2022-02-17T06:59:58.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,15 +419,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"844730ac-a5ba-4391-8e55-68e442a73fb9\"},\"etag\":\"\\\"0200ba40-0000-0200-0000-620df26d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45\",\"name\":\"psdnsforwardingrulesetname45\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T06:59:54.023632Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:59:54.023632Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45/outboundEndpoints/psoutboundendpointname45\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"844730ac-a5ba-4391-8e55-68e442a73fb9\"},\"etag\":\"\\\"0200ba40-0000-0200-0000-620df26d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45\",\"name\":\"psdnsforwardingrulesetname45\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T06:59:54.023632Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:59:54.023632Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2023-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+12": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -503,14 +503,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==\",\"startTime\":\"2022-02-17T07:00:00.0000000Z\",\"endTime\":\"2022-02-17T07:00:03.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkMTYxMmI0OS03YTU5LTRiYTctOGRkZS04NmQyMzllY2ZmYWUifQ==\",\"startTime\":\"2022-02-17T07:00:00.0000000Z\",\"endTime\":\"2022-02-17T07:00:03.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+13": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -546,14 +546,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0200bd40-0000-0200-0000-620df2730000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45\",\"name\":\"psdnsvirtualnetworklinkname45\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:00.1980999Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:00.1980999Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0200bd40-0000-0200-0000-620df2730000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45\",\"name\":\"psdnsvirtualnetworklinkname45\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:00.1980999Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:00.1980999Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+14": { + "Get-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Get single virtual network link by name, expect virtual network link retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -589,15 +589,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0200bd40-0000-0200-0000-620df2730000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45\",\"name\":\"psdnsvirtualnetworklinkname45\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:00.1980999Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:00.1980999Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0200bd40-0000-0200-0000-620df2730000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname45/virtualNetworkLinks/psdnsvirtualnetworklinkname45\",\"name\":\"psdnsvirtualnetworklinkname45\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:00.1980999Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:00.1980999Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -673,14 +673,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9\",\"startTime\":\"2022-02-17T07:00:08.0000000Z\",\"endTime\":\"2022-02-17T07:00:10.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjFhMzViZmZhLTdhMTQtNGEyMy1iYzNjLTBmZjgyNDMwZDE1MyJ9\",\"startTime\":\"2022-02-17T07:00:08.0000000Z\",\"endTime\":\"2022-02-17T07:00:10.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -716,15 +716,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c29c7a2a-2c1f-4766-a231-e4e13ff2a725\"},\"etag\":\"\\\"0400f03b-0000-0200-0000-620df27a0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46\",\"name\":\"psdnsresolvername46\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:08.7771045Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:08.7771045Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c29c7a2a-2c1f-4766-a231-e4e13ff2a725\"},\"etag\":\"\\\"0400f03b-0000-0200-0000-620df27a0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46\",\"name\":\"psdnsresolvername46\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:08.7771045Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:08.7771045Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -800,14 +800,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=\",\"startTime\":\"2022-02-17T07:00:16.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=\",\"startTime\":\"2022-02-17T07:00:16.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -843,14 +843,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=\",\"startTime\":\"2022-02-17T07:00:16.0000000Z\",\"endTime\":\"2022-02-17T07:00:23.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYThlM2UyODAtYWVhNS00MTc3LTk1NTQtNjhmMWQ0NzJjMTAwIn0=\",\"startTime\":\"2022-02-17T07:00:16.0000000Z\",\"endTime\":\"2022-02-17T07:00:23.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -886,15 +886,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5aff6aae-4a8d-46bd-a61f-faf3fc35e2c4\"},\"etag\":\"\\\"02009461-0000-0200-0000-620df2870000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46\",\"name\":\"psoutboundendpointname46\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:16.1648636Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:16.1648636Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5aff6aae-4a8d-46bd-a61f-faf3fc35e2c4\"},\"etag\":\"\\\"02009461-0000-0200-0000-620df2870000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46\",\"name\":\"psoutboundendpointname46\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:16.1648636Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:16.1648636Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -970,14 +970,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9\",\"startTime\":\"2022-02-17T07:00:53.0000000Z\",\"endTime\":\"2022-02-17T07:00:58.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImI5ZGUzYjNkLTU3ZjMtNDcxNy04NDA5LTM2YjE2NDE3MTEzNSJ9\",\"startTime\":\"2022-02-17T07:00:53.0000000Z\",\"endTime\":\"2022-02-17T07:00:58.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1013,15 +1013,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"24442022-c082-4a1d-ab92-b8a6c3c24e14\"},\"etag\":\"\\\"02000741-0000-0200-0000-620df2a90000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46\",\"name\":\"psdnsforwardingrulesetname46\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:53.5689028Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:53.5689028Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46/outboundEndpoints/psoutboundendpointname46\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"24442022-c082-4a1d-ab92-b8a6c3c24e14\"},\"etag\":\"\\\"02000741-0000-0200-0000-620df2a90000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46\",\"name\":\"psdnsforwardingrulesetname46\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:53.5689028Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:53.5689028Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2023-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1097,14 +1097,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==\",\"startTime\":\"2022-02-17T07:00:59.0000000Z\",\"endTime\":\"2022-02-17T07:01:03.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJjNGVjMDQ1NS01NDgyLTRmNjktYjViOC0xNmM1NzgyMzkwMDkifQ==\",\"startTime\":\"2022-02-17T07:00:59.0000000Z\",\"endTime\":\"2022-02-17T07:01:03.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1140,14 +1140,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"02004b41-0000-0200-0000-620df2af0000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46\",\"name\":\"psdnsvirtualnetworklinkname46\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:59.7717992Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:59.7717992Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"02004b41-0000-0200-0000-620df2af0000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46\",\"name\":\"psdnsvirtualnetworklinkname46\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:59.7717992Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:59.7717992Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -1184,7 +1184,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"02004b41-0000-0200-0000-620df2af0000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46\",\"name\":\"psdnsvirtualnetworklinkname46\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:59.7717992Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:59.7717992Z\",\"lastModifiedByType\":\"User\"}}]}", + "Content": "{\"value\":[{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"02004b41-0000-0200-0000-620df2af0000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname46/virtualNetworkLinks/psdnsvirtualnetworklinkname46\",\"name\":\"psdnsvirtualnetworklinkname46\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:59.7717992Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:59.7717992Z\",\"lastModifiedByType\":\"User\"}}]}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolver.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolver.Recording.json index 33cb31828738..2320432ee242 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolver.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolver.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9\",\"startTime\":\"2022-02-18T02:29:49.0000000Z\",\"endTime\":\"2022-02-18T02:29:52.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVkYTY1NjcwLTM0M2MtNDRkNS1iOTdlLTcxODNjZjQ2Njk1NiJ9\",\"startTime\":\"2022-02-18T02:29:49.0000000Z\",\"endTime\":\"2022-02-18T02:29:52.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,14 +122,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c6637d4f-544b-449a-b0fe-93972735a860\"},\"etag\":\"\\\"0500de3f-0000-0200-0000-620f04a00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62\",\"name\":\"psdnsresolvername62\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:49.9410187Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:49.9410187Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c6637d4f-544b-449a-b0fe-93972735a860\"},\"etag\":\"\\\"0500de3f-0000-0200-0000-620f04a00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62\",\"name\":\"psdnsresolvername62\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:49.9410187Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:49.9410187Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Get-AzDnsResolver+[NoContext]+Get single DNS resolver by name, expect DNS resolver by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -165,15 +165,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c6637d4f-544b-449a-b0fe-93972735a860\"},\"etag\":\"\\\"0500de3f-0000-0200-0000-620f04a00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62\",\"name\":\"psdnsresolvername62\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:49.9410187Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:49.9410187Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c6637d4f-544b-449a-b0fe-93972735a860\"},\"etag\":\"\\\"0500de3f-0000-0200-0000-620f04a00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62\",\"name\":\"psdnsresolvername62\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:49.9410187Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:49.9410187Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+1": { + "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9\",\"startTime\":\"2022-02-18T02:29:58.0000000Z\",\"endTime\":\"2022-02-18T02:30:00.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImZhMjAyYWJlLTM5NTctNGMzNC1iMjU2LTVhMzk2OWQxM2VlMiJ9\",\"startTime\":\"2022-02-18T02:29:58.0000000Z\",\"endTime\":\"2022-02-18T02:30:00.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,14 +292,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ea8728dc-cbbb-41ca-a208-275c44dbc041\"},\"etag\":\"\\\"05001540-0000-0200-0000-620f04a70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63\",\"name\":\"psdnsresolvername63\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:58.2493476Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:58.2493476Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ea8728dc-cbbb-41ca-a208-275c44dbc041\"},\"etag\":\"\\\"05001540-0000-0200-0000-620f04a70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63\",\"name\":\"psdnsresolvername63\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:58.2493476Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:58.2493476Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Get-AzDnsResolver+[NoContext]+List DNS resolvers in a resource group, expected least number of DNS resolvers retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -336,7 +336,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cda7f034-e989-4600-9940-e2addb71ee1b\"},\"etag\":\"\\\"1000b0f9-0000-0200-0000-620c259c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15\",\"name\":\"psdnsresolvername15\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-15T22:13:37.5391938Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-15T22:13:37.5391938Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ece17e4c-4f59-4f3d-9037-717a5b27c1f8\"},\"etag\":\"\\\"00006509-0000-0200-0000-620c48e10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername16\",\"name\":\"psdnsresolvername16\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T00:44:08.9897132Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T00:44:08.9897132Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5503d213-cc54-468d-bbed-ba49a54e275d\"},\"etag\":\"\\\"0000710e-0000-0200-0000-620c534e0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17\",\"name\":\"psdnsresolvername17\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:28:35.4818066Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:28:35.4818066Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b1b56e26-f301-411f-8910-1ca7b3139bc9\"},\"etag\":\"\\\"0000760e-0000-0200-0000-620c537a0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18\",\"name\":\"psdnsresolvername18\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:29:22.2872869Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:29:22.2872869Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0e6f7b66-10c4-413d-acf9-040e9a907a17\"},\"etag\":\"\\\"0500463f-0000-0200-0000-620f04250000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19\",\"name\":\"psdnsresolvername19\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:41:21.2110273Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:27:46.9151536Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a30567b4-f795-473a-9653-f7c7eee78740\"},\"etag\":\"\\\"00006214-0000-0200-0000-620c5b0f0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20\",\"name\":\"psdnsresolvername20\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:00:26.5590393Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:01:39.2757366Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"df597f9d-dbc0-4ccb-9432-843ea991e6e7\"},\"etag\":\"\\\"00003a17-0000-0200-0000-620c5ef10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21\",\"name\":\"psdnsresolvername21\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:17:44.9947831Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:17:44.9947831Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"56b508ae-536d-4c7e-9a2e-ad133bd2c62a\"},\"etag\":\"\\\"00004917-0000-0200-0000-620c5f200000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22\",\"name\":\"psdnsresolvername22\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:19:02.5075091Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:19:02.5075091Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"afe28061-926f-4209-8f46-a0b656555922\"},\"etag\":\"\\\"05004b3f-0000-0200-0000-620f042c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23\",\"name\":\"psdnsresolvername23\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:26:49.6221368Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:27:55.4563647Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d1969e70-6d1e-4fb5-bb3d-14e6d23e642a\"},\"etag\":\"\\\"0000db38-0000-0200-0000-620c840c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24\",\"name\":\"psdnsresolvername24\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T04:56:36.4342882Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T04:56:36.4342882Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cdf94a02-32f7-46c4-ba66-ce19d8e1010b\"},\"etag\":\"\\\"0300c572-0000-0200-0000-620d3e350000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername25\",\"name\":\"psdnsresolvername25\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:10:51.9398207Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:10:51.9398207Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname26\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ce7e6be7-6193-4d07-921c-456377651871\"},\"etag\":\"\\\"03005d74-0000-0200-0000-620d41700000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername26\",\"name\":\"psdnsresolvername26\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":null,\"createdByType\":null,\"lastModifiedAt\":\"2022-02-16T18:24:39.0185789Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"4bce0ac2-eef6-491c-beed-4f5388f783ce\"},\"etag\":\"\\\"03006774-0000-0200-0000-620d41a30000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername27\",\"name\":\"psdnsresolvername27\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":null,\"createdByType\":null,\"lastModifiedAt\":\"2022-02-16T18:25:31.4283917Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dcad738d-e6a2-47b6-b56f-20dbbcd81c0b\"},\"etag\":\"\\\"03006975-0000-0200-0000-620d430b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28\",\"name\":\"psdnsresolvername28\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:31:31.4990792Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:31:31.4990792Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"68999fe1-aea4-414a-81f6-7afa13d4ee70\"},\"etag\":\"\\\"03009775-0000-0200-0000-620d43420000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29\",\"name\":\"psdnsresolvername29\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:25.3876427Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:25.3876427Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb16b315-adc4-4e5a-8539-e229a8416176\"},\"etag\":\"\\\"0300c977-0000-0200-0000-620d467b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30\",\"name\":\"psdnsresolvername30\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:46:08.2055923Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:46:08.2055923Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"19931bc9-3aad-4d87-ac40-7c4761f9f81a\"},\"etag\":\"\\\"0300c28d-0000-0200-0000-620d59770000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername31\",\"name\":\"psdnsresolvername31\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T20:07:11.7907072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T20:07:11.7907072Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname32\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"84511be2-34db-475b-93e6-3354ec0e3d31\"},\"etag\":\"\\\"0300278e-0000-0200-0000-620d59ea0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername32\",\"name\":\"psdnsresolvername32\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T20:09:03.5740349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T20:09:03.5740349Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname33\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c487534c-8ec1-4bf1-8c71-4b68a1d3e489\"},\"etag\":\"\\\"030086bb-0000-0200-0000-620d6a310000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername33\",\"name\":\"psdnsresolvername33\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:18:32.0061184Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:18:32.0061184Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"921f4f96-83e5-47c3-aea9-15f106a62e5c\"},\"etag\":\"\\\"0300a6bc-0000-0200-0000-620d6b640000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername34\",\"name\":\"psdnsresolvername34\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:23:37.5336952Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:23:37.5336952Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname35\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cc99d9d3-0d1b-4c86-8bf6-336d633f0a10\"},\"etag\":\"\\\"030070c1-0000-0200-0000-620d70920000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername35\",\"name\":\"psdnsresolvername35\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:45:46.4069344Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:45:46.4069344Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b75cd4fe-b321-4d45-8ff1-133eb1ffd8eb\"},\"etag\":\"\\\"030079c1-0000-0200-0000-620d70c90000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername36\",\"name\":\"psdnsresolvername36\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:46:39.9592439Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:46:39.9592439Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"24157fbe-2e0b-4d21-905d-536a3d11e67b\"},\"etag\":\"\\\"0300cdc1-0000-0200-0000-620d71a50000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername37\",\"name\":\"psdnsresolvername37\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:50:19.2261321Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:50:19.2261321Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ff2c1ada-ec7b-4deb-9e0c-c04702f0d644\"},\"etag\":\"\\\"030001c2-0000-0200-0000-620d71da0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername38\",\"name\":\"psdnsresolvername38\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:51:13.1305592Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:51:13.1305592Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"91584c43-c737-41b6-adc1-3161cbd9fb9b\"},\"etag\":\"\\\"030011c4-0000-0200-0000-620d76100000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39\",\"name\":\"psdnsresolvername39\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:10.3344312Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:10.3344312Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"2fcb649b-08f0-48bb-b1a4-326810d42aa0\"},\"etag\":\"\\\"030000c4-0000-0200-0000-620d75a20000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40\",\"name\":\"psdnsresolvername40\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:07:18.9325346Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:07:18.9325346Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bc9ccf07-6aca-4c1d-9923-5fe90e0a20ac\"},\"etag\":\"\\\"03000ac4-0000-0200-0000-620d75d50000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41\",\"name\":\"psdnsresolvername41\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:13.7136904Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:13.7136904Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f1860481-a100-4af8-ad57-79afb7d6bdbf\"},\"etag\":\"\\\"04007830-0000-0200-0000-620de54f0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42\",\"name\":\"psdnsresolvername42\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:03:49.2357036Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:03:49.2357036Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7018da5c-f0f5-4f22-aef2-beafd5d3a769\"},\"etag\":\"\\\"0400bf35-0000-0200-0000-620de9d50000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43\",\"name\":\"psdnsresolvername43\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:23:09.0883469Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:23:09.0883469Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e56ea734-f1fa-4a09-a004-bbe30bb6f44e\"},\"etag\":\"\\\"0400d738-0000-0200-0000-620deca60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44\",\"name\":\"psdnsresolvername44\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:35:09.6966547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:35:09.6966547Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b7c1a2fe-d9e7-4b97-bc9f-e35286346fa9\"},\"etag\":\"\\\"0400e53b-0000-0200-0000-620df2450000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45\",\"name\":\"psdnsresolvername45\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:59:08.5054687Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:59:08.5054687Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c29c7a2a-2c1f-4766-a231-e4e13ff2a725\"},\"etag\":\"\\\"0400f13b-0000-0200-0000-620df2810000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46\",\"name\":\"psdnsresolvername46\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:08.7771045Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:08.7771045Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72c1afff-5fd0-4d9a-b8dd-1b8813e8e360\"},\"etag\":\"\\\"05004d3f-0000-0200-0000-620f04400000\\\"\",\"location\":\"eastus2\",\"tags\":{\"key7v0j5\":\"value7v0j5\",\"keyozrf6\":\"valueozrf6\",\"keyu5dpi\":\"valueu5dpi\",\"keyqpb2m\":\"valueqpb2m\",\"keyp564z\":\"valuep564z\",\"keyfygw0\":\"valuefygw0\"},\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47\",\"name\":\"psdnsresolvername47\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:20:23.6702765Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:28:13.5845121Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"890f6de6-7708-4b43-94a8-fd5cfbab783f\"},\"etag\":\"\\\"04007ae9-0000-0200-0000-620e966b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48\",\"name\":\"psdnsresolvername48\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:39:29.6020456Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:29.6020456Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cf0563fe-9bf1-41cb-a8b7-d31b27c8424d\"},\"etag\":\"\\\"0400eeec-0000-0200-0000-620e9bd50000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername49\",\"name\":\"psdnsresolvername49\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T19:02:33.6137503Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T19:02:33.6137503Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1faebe7e-435a-4194-a911-4c9de440184b\"},\"etag\":\"\\\"05005b05-0000-0200-0000-620eb68e0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50\",\"name\":\"psdnsresolvername50\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T20:56:34.6727685Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T20:56:34.6727685Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d3348542-6218-499f-a322-ab22c49318ed\"},\"etag\":\"\\\"05001b28-0000-0200-0000-620ee4bc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername51\",\"name\":\"psdnsresolvername51\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:13:39.9998685Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:13:39.9998685Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname52\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"de10ce79-8a8e-4c2b-8930-eb9b52635297\"},\"etag\":\"\\\"05006d2b-0000-0200-0000-620ee86c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername52\",\"name\":\"psdnsresolvername52\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:28:52.7582524Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:28:52.7582524Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname53\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cf3ce29b-ecda-47c3-946b-eee46437d9f4\"},\"etag\":\"\\\"0500802c-0000-0200-0000-620eeaca0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername53\",\"name\":\"psdnsresolvername53\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:39:27.5281516Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:39:27.5281516Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname54\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9a35ecf8-8f13-4caa-84eb-deeb44f7540b\"},\"etag\":\"\\\"0500d92c-0000-0200-0000-620eebb00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54\",\"name\":\"psdnsresolvername54\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:43:17.785088Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:43:17.785088Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname55\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8c0667f9-3acb-4b4a-af23-26e2ce44ac02\"},\"etag\":\"\\\"05005a2e-0000-0200-0000-620eef6b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername55\",\"name\":\"psdnsresolvername55\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:59:12.9736905Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:59:12.9736905Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname56\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1b21462f-b89f-47da-91b9-9c04a0a0b906\"},\"etag\":\"\\\"0500422f-0000-0200-0000-620ef03b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername56\",\"name\":\"psdnsresolvername56\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T01:02:42.1624163Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:02:42.1624163Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"95fbffd9-a3e5-4e47-98dc-523835b803ea\"},\"etag\":\"\\\"05005039-0000-0200-0000-620efb010000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57\",\"name\":\"psdnsresolvername57\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T01:48:41.0550366Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:48:41.0550366Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d5f7f699-181d-46d2-94ce-ea685201683d\"},\"etag\":\"\\\"0500ea3a-0000-0200-0000-620efd940000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername58\",\"name\":\"psdnsresolvername58\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T01:59:40.2465219Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:59:40.2465219Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3616b749-ad66-48b0-9d91-c83f0baa8114\"},\"etag\":\"\\\"0500b33b-0000-0200-0000-620efe760000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59\",\"name\":\"psdnsresolvername59\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:03:23.3941961Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:03:23.3941961Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c9d211f8-8853-47b6-aab6-b3c6b2ecfbda\"},\"etag\":\"\\\"0500263f-0000-0200-0000-620f03d20000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername60\",\"name\":\"psdnsresolvername60\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:26:22.6358918Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:26:22.6358918Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname61\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"92f7ddd8-e1e2-4a27-a3c4-0d0815b4c000\"},\"etag\":\"\\\"0500293f-0000-0200-0000-620f03d80000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername61\",\"name\":\"psdnsresolvername61\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:26:31.5737882Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:26:31.5737882Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c6637d4f-544b-449a-b0fe-93972735a860\"},\"etag\":\"\\\"0500de3f-0000-0200-0000-620f04a00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62\",\"name\":\"psdnsresolvername62\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:49.9410187Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:49.9410187Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ea8728dc-cbbb-41ca-a208-275c44dbc041\"},\"etag\":\"\\\"05001540-0000-0200-0000-620f04a70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63\",\"name\":\"psdnsresolvername63\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:58.2493476Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:58.2493476Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"77d94e11-aa71-4e71-a7a5-bcfdcfe5eb81\"},\"etag\":\"\\\"10007af7-0000-0200-0000-620c11a20000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername8\",\"name\":\"psdnsresolvername8\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-15T20:48:20.6457999Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-15T20:48:20.6457999Z\",\"lastModifiedByType\":\"User\"}}]}", + "Content": "{\"value\":[{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cda7f034-e989-4600-9940-e2addb71ee1b\"},\"etag\":\"\\\"1000b0f9-0000-0200-0000-620c259c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15\",\"name\":\"psdnsresolvername15\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-15T22:13:37.5391938Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-15T22:13:37.5391938Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ece17e4c-4f59-4f3d-9037-717a5b27c1f8\"},\"etag\":\"\\\"00006509-0000-0200-0000-620c48e10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername16\",\"name\":\"psdnsresolvername16\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T00:44:08.9897132Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T00:44:08.9897132Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5503d213-cc54-468d-bbed-ba49a54e275d\"},\"etag\":\"\\\"0000710e-0000-0200-0000-620c534e0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17\",\"name\":\"psdnsresolvername17\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:28:35.4818066Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:28:35.4818066Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b1b56e26-f301-411f-8910-1ca7b3139bc9\"},\"etag\":\"\\\"0000760e-0000-0200-0000-620c537a0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18\",\"name\":\"psdnsresolvername18\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:29:22.2872869Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:29:22.2872869Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0e6f7b66-10c4-413d-acf9-040e9a907a17\"},\"etag\":\"\\\"0500463f-0000-0200-0000-620f04250000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19\",\"name\":\"psdnsresolvername19\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:41:21.2110273Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:27:46.9151536Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a30567b4-f795-473a-9653-f7c7eee78740\"},\"etag\":\"\\\"00006214-0000-0200-0000-620c5b0f0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20\",\"name\":\"psdnsresolvername20\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:00:26.5590393Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:01:39.2757366Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"df597f9d-dbc0-4ccb-9432-843ea991e6e7\"},\"etag\":\"\\\"00003a17-0000-0200-0000-620c5ef10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21\",\"name\":\"psdnsresolvername21\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:17:44.9947831Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:17:44.9947831Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"56b508ae-536d-4c7e-9a2e-ad133bd2c62a\"},\"etag\":\"\\\"00004917-0000-0200-0000-620c5f200000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22\",\"name\":\"psdnsresolvername22\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:19:02.5075091Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:19:02.5075091Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"afe28061-926f-4209-8f46-a0b656555922\"},\"etag\":\"\\\"05004b3f-0000-0200-0000-620f042c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23\",\"name\":\"psdnsresolvername23\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:26:49.6221368Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:27:55.4563647Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d1969e70-6d1e-4fb5-bb3d-14e6d23e642a\"},\"etag\":\"\\\"0000db38-0000-0200-0000-620c840c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24\",\"name\":\"psdnsresolvername24\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T04:56:36.4342882Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T04:56:36.4342882Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cdf94a02-32f7-46c4-ba66-ce19d8e1010b\"},\"etag\":\"\\\"0300c572-0000-0200-0000-620d3e350000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername25\",\"name\":\"psdnsresolvername25\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:10:51.9398207Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:10:51.9398207Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname26\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ce7e6be7-6193-4d07-921c-456377651871\"},\"etag\":\"\\\"03005d74-0000-0200-0000-620d41700000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername26\",\"name\":\"psdnsresolvername26\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":null,\"createdByType\":null,\"lastModifiedAt\":\"2022-02-16T18:24:39.0185789Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"4bce0ac2-eef6-491c-beed-4f5388f783ce\"},\"etag\":\"\\\"03006774-0000-0200-0000-620d41a30000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername27\",\"name\":\"psdnsresolvername27\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":null,\"createdByType\":null,\"lastModifiedAt\":\"2022-02-16T18:25:31.4283917Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dcad738d-e6a2-47b6-b56f-20dbbcd81c0b\"},\"etag\":\"\\\"03006975-0000-0200-0000-620d430b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername28\",\"name\":\"psdnsresolvername28\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:31:31.4990792Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:31:31.4990792Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"68999fe1-aea4-414a-81f6-7afa13d4ee70\"},\"etag\":\"\\\"03009775-0000-0200-0000-620d43420000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername29\",\"name\":\"psdnsresolvername29\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:32:25.3876427Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:32:25.3876427Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb16b315-adc4-4e5a-8539-e229a8416176\"},\"etag\":\"\\\"0300c977-0000-0200-0000-620d467b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30\",\"name\":\"psdnsresolvername30\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:46:08.2055923Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:46:08.2055923Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"19931bc9-3aad-4d87-ac40-7c4761f9f81a\"},\"etag\":\"\\\"0300c28d-0000-0200-0000-620d59770000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername31\",\"name\":\"psdnsresolvername31\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T20:07:11.7907072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T20:07:11.7907072Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname32\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"84511be2-34db-475b-93e6-3354ec0e3d31\"},\"etag\":\"\\\"0300278e-0000-0200-0000-620d59ea0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername32\",\"name\":\"psdnsresolvername32\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T20:09:03.5740349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T20:09:03.5740349Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname33\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c487534c-8ec1-4bf1-8c71-4b68a1d3e489\"},\"etag\":\"\\\"030086bb-0000-0200-0000-620d6a310000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername33\",\"name\":\"psdnsresolvername33\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:18:32.0061184Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:18:32.0061184Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"921f4f96-83e5-47c3-aea9-15f106a62e5c\"},\"etag\":\"\\\"0300a6bc-0000-0200-0000-620d6b640000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername34\",\"name\":\"psdnsresolvername34\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:23:37.5336952Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:23:37.5336952Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname35\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cc99d9d3-0d1b-4c86-8bf6-336d633f0a10\"},\"etag\":\"\\\"030070c1-0000-0200-0000-620d70920000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername35\",\"name\":\"psdnsresolvername35\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:45:46.4069344Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:45:46.4069344Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b75cd4fe-b321-4d45-8ff1-133eb1ffd8eb\"},\"etag\":\"\\\"030079c1-0000-0200-0000-620d70c90000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername36\",\"name\":\"psdnsresolvername36\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:46:39.9592439Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:46:39.9592439Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"24157fbe-2e0b-4d21-905d-536a3d11e67b\"},\"etag\":\"\\\"0300cdc1-0000-0200-0000-620d71a50000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername37\",\"name\":\"psdnsresolvername37\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:50:19.2261321Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:50:19.2261321Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ff2c1ada-ec7b-4deb-9e0c-c04702f0d644\"},\"etag\":\"\\\"030001c2-0000-0200-0000-620d71da0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername38\",\"name\":\"psdnsresolvername38\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T21:51:13.1305592Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T21:51:13.1305592Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"91584c43-c737-41b6-adc1-3161cbd9fb9b\"},\"etag\":\"\\\"030011c4-0000-0200-0000-620d76100000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39\",\"name\":\"psdnsresolvername39\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:10.3344312Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:10.3344312Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"2fcb649b-08f0-48bb-b1a4-326810d42aa0\"},\"etag\":\"\\\"030000c4-0000-0200-0000-620d75a20000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername40\",\"name\":\"psdnsresolvername40\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:07:18.9325346Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:07:18.9325346Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bc9ccf07-6aca-4c1d-9923-5fe90e0a20ac\"},\"etag\":\"\\\"03000ac4-0000-0200-0000-620d75d50000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername41\",\"name\":\"psdnsresolvername41\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:08:13.7136904Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:08:13.7136904Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f1860481-a100-4af8-ad57-79afb7d6bdbf\"},\"etag\":\"\\\"04007830-0000-0200-0000-620de54f0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42\",\"name\":\"psdnsresolvername42\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:03:49.2357036Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:03:49.2357036Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7018da5c-f0f5-4f22-aef2-beafd5d3a769\"},\"etag\":\"\\\"0400bf35-0000-0200-0000-620de9d50000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43\",\"name\":\"psdnsresolvername43\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:23:09.0883469Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:23:09.0883469Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e56ea734-f1fa-4a09-a004-bbe30bb6f44e\"},\"etag\":\"\\\"0400d738-0000-0200-0000-620deca60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44\",\"name\":\"psdnsresolvername44\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:35:09.6966547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:35:09.6966547Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b7c1a2fe-d9e7-4b97-bc9f-e35286346fa9\"},\"etag\":\"\\\"0400e53b-0000-0200-0000-620df2450000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername45\",\"name\":\"psdnsresolvername45\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:59:08.5054687Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:59:08.5054687Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c29c7a2a-2c1f-4766-a231-e4e13ff2a725\"},\"etag\":\"\\\"0400f13b-0000-0200-0000-620df2810000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername46\",\"name\":\"psdnsresolvername46\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T07:00:08.7771045Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T07:00:08.7771045Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72c1afff-5fd0-4d9a-b8dd-1b8813e8e360\"},\"etag\":\"\\\"05004d3f-0000-0200-0000-620f04400000\\\"\",\"location\":\"eastus2\",\"tags\":{\"key7v0j5\":\"value7v0j5\",\"keyozrf6\":\"valueozrf6\",\"keyu5dpi\":\"valueu5dpi\",\"keyqpb2m\":\"valueqpb2m\",\"keyp564z\":\"valuep564z\",\"keyfygw0\":\"valuefygw0\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47\",\"name\":\"psdnsresolvername47\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:20:23.6702765Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:28:13.5845121Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"890f6de6-7708-4b43-94a8-fd5cfbab783f\"},\"etag\":\"\\\"04007ae9-0000-0200-0000-620e966b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48\",\"name\":\"psdnsresolvername48\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:39:29.6020456Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:29.6020456Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cf0563fe-9bf1-41cb-a8b7-d31b27c8424d\"},\"etag\":\"\\\"0400eeec-0000-0200-0000-620e9bd50000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername49\",\"name\":\"psdnsresolvername49\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T19:02:33.6137503Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T19:02:33.6137503Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1faebe7e-435a-4194-a911-4c9de440184b\"},\"etag\":\"\\\"05005b05-0000-0200-0000-620eb68e0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50\",\"name\":\"psdnsresolvername50\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T20:56:34.6727685Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T20:56:34.6727685Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d3348542-6218-499f-a322-ab22c49318ed\"},\"etag\":\"\\\"05001b28-0000-0200-0000-620ee4bc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername51\",\"name\":\"psdnsresolvername51\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:13:39.9998685Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:13:39.9998685Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname52\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"de10ce79-8a8e-4c2b-8930-eb9b52635297\"},\"etag\":\"\\\"05006d2b-0000-0200-0000-620ee86c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername52\",\"name\":\"psdnsresolvername52\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:28:52.7582524Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:28:52.7582524Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname53\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cf3ce29b-ecda-47c3-946b-eee46437d9f4\"},\"etag\":\"\\\"0500802c-0000-0200-0000-620eeaca0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername53\",\"name\":\"psdnsresolvername53\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:39:27.5281516Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:39:27.5281516Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname54\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9a35ecf8-8f13-4caa-84eb-deeb44f7540b\"},\"etag\":\"\\\"0500d92c-0000-0200-0000-620eebb00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54\",\"name\":\"psdnsresolvername54\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:43:17.785088Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:43:17.785088Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname55\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8c0667f9-3acb-4b4a-af23-26e2ce44ac02\"},\"etag\":\"\\\"05005a2e-0000-0200-0000-620eef6b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername55\",\"name\":\"psdnsresolvername55\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:59:12.9736905Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:59:12.9736905Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname56\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1b21462f-b89f-47da-91b9-9c04a0a0b906\"},\"etag\":\"\\\"0500422f-0000-0200-0000-620ef03b0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername56\",\"name\":\"psdnsresolvername56\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T01:02:42.1624163Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:02:42.1624163Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"95fbffd9-a3e5-4e47-98dc-523835b803ea\"},\"etag\":\"\\\"05005039-0000-0200-0000-620efb010000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57\",\"name\":\"psdnsresolvername57\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T01:48:41.0550366Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:48:41.0550366Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d5f7f699-181d-46d2-94ce-ea685201683d\"},\"etag\":\"\\\"0500ea3a-0000-0200-0000-620efd940000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername58\",\"name\":\"psdnsresolvername58\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T01:59:40.2465219Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:59:40.2465219Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3616b749-ad66-48b0-9d91-c83f0baa8114\"},\"etag\":\"\\\"0500b33b-0000-0200-0000-620efe760000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59\",\"name\":\"psdnsresolvername59\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:03:23.3941961Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:03:23.3941961Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c9d211f8-8853-47b6-aab6-b3c6b2ecfbda\"},\"etag\":\"\\\"0500263f-0000-0200-0000-620f03d20000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername60\",\"name\":\"psdnsresolvername60\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:26:22.6358918Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:26:22.6358918Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname61\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"92f7ddd8-e1e2-4a27-a3c4-0d0815b4c000\"},\"etag\":\"\\\"0500293f-0000-0200-0000-620f03d80000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername61\",\"name\":\"psdnsresolvername61\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:26:31.5737882Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:26:31.5737882Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c6637d4f-544b-449a-b0fe-93972735a860\"},\"etag\":\"\\\"0500de3f-0000-0200-0000-620f04a00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername62\",\"name\":\"psdnsresolvername62\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:49.9410187Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:49.9410187Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ea8728dc-cbbb-41ca-a208-275c44dbc041\"},\"etag\":\"\\\"05001540-0000-0200-0000-620f04a70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername63\",\"name\":\"psdnsresolvername63\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:29:58.2493476Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:29:58.2493476Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"77d94e11-aa71-4e71-a7a5-bcfdcfe5eb81\"},\"etag\":\"\\\"10007af7-0000-0200-0000-620c11a20000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername8\",\"name\":\"psdnsresolvername8\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-15T20:48:20.6457999Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-15T20:48:20.6457999Z\",\"lastModifiedByType\":\"User\"}}]}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Recording.json new file mode 100644 index 000000000000..ceed4cd893bf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Recording.json @@ -0,0 +1,511 @@ +{ + "Get-AzDnsResolverDomainList+[NoContext]+Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImZlZTU0NjI2LWM5MjUtNGI4OS05MWI3LTg0ODc5NTU4ZjQ4MiJ9?api-version=2023-07-01-preview\u0026t=638648055797881568\u0026c=MIIHpTCCBo2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jd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Hmc46NKWLeddGtI6nfV0yj3sl-S4-y7pV_OrximA6DliUQEQL0Ti-B9AsZUHwfk3QpO1SwoCa5KGKO9LByk4_ZjpN_6z-_YiP3rDfm8cnMAm1WxfrdtcqZijGKQMY9DdSuVtGGrVvJ5tSmAFRKNqJrNGIqjcF2K2YtHUpGtlgNbn9AfCMvzv5lWFe3IDlbD1JTsuS4WVD493JPIli9zbxgB4A33BhN5DNdv2bRKJJnBS9iFYezt_pWWMY4SqHTH_8eYkrLiHt5p0miqYaTTpQtiiulF0M_sChA6BHHYND81or0x7PW66u3eqgPCp4fVGJ_1vCY3y0YKGNmoEZrgfEw\u0026h=srYaG_JPiNckx9gJJPeG6hs_-oV8kMxQmqtmkk2gMjc" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "e7c186e6-6406-4399-b043-7b403519b1d1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBl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gZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=0AFJlM6xhosBZyEkssTMB7i5UjL6b_UjSI_ZDYDl3aBk8gSfpGanj0eKCyW_T9R8UEF-B0vrkBCtxm2xYK1fSA7lqamNqjmP10G_8nmA1VTkZLNh5eGlSjo-0jpyMRA944P-w0oLHDjsiiPKXB1SX5qPSYScZnAMnc9JVhsscSMhIa2AaDXIZd9JO4R25EaOTtHlKaP1Vo7IzzLTXpchrZgo0gch2BYcOXPGU6YCMDb9EyDwkvwP0h9jfypT05xLzt0frBbsduOgeuAGybU709FOZLiynPBdTiOdV-tE2ltP2WIXsOiCNbhw_tRwKz7mWnoT4LcW1eCU7fDYk2J4Rg\u0026h=URMUkIqwSYo8Xgo4nROrk8MMPFM_t5oGfW13CCkzwO4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "e7c186e6-6406-4399-b043-7b403519b1d1" ], + "x-ms-correlation-request-id": [ "e7c186e6-6406-4399-b043-7b403519b1d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234619Z:e7c186e6-6406-4399-b043-7b403519b1d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F1A439DB112541D1BA6F3C97DA15FEDA Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:18Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "610" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"16004d2e-0000-0200-0000-6711a1cb0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbW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3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=0AFJlM6xhosBZyEkssTMB7i5UjL6b_UjSI_ZDYDl3aBk8gSfpGanj0eKCyW_T9R8UEF-B0vrkBCtxm2xYK1fSA7lqamNqjmP10G_8nmA1VTkZLNh5eGlSjo-0jpyMRA944P-w0oLHDjsiiPKXB1SX5qPSYScZnAMnc9JVhsscSMhIa2AaDXIZd9JO4R25EaOTtHlKaP1Vo7IzzLTXpchrZgo0gch2BYcOXPGU6YCMDb9EyDwkvwP0h9jfypT05xLzt0frBbsduOgeuAGybU709FOZLiynPBdTiOdV-tE2ltP2WIXsOiCNbhw_tRwKz7mWnoT4LcW1eCU7fDYk2J4Rg\u0026h=URMUkIqwSYo8Xgo4nROrk8MMPFM_t5oGfW13CCkzwO4+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImZlZTU0NjI2LWM5MjUtNGI4OS05MWI3LTg0ODc5NTU4ZjQ4MiJ9?api-version=2023-07-01-preview\u0026t=638648055797725344\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACA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wSYo8Xgo4nROrk8MMPFM_t5oGfW13CCkzwO4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "df8ada41-5272-4559-bfc7-5689a7c74c7e" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "88a13cfb-053b-44ac-a031-ac9502dfe54e" ], + "x-ms-correlation-request-id": [ "88a13cfb-053b-44ac-a031-ac9502dfe54e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234626Z:88a13cfb-053b-44ac-a031-ac9502dfe54e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2491058DC1A3434096008867B6D36956 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:24Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "df8ada41-5272-4559-bfc7-5689a7c74c7e" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "96d3d3cb-819b-4517-af85-8701e9b8b942" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "96d3d3cb-819b-4517-af85-8701e9b8b942" ], + "x-ms-correlation-request-id": [ "96d3d3cb-819b-4517-af85-8701e9b8b942" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234627Z:96d3d3cb-819b-4517-af85-8701e9b8b942" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8F43C473670E4CD7A9098262DE29D8EA Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:26Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"99b97664-e19c-4c40-9fe5-b6f6e9a47d76\"},\"etag\":\"\\\"0a009e90-0000-0200-0000-6711a1cd0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "4adeab5f-ebcd-4666-88e3-b6da8f8bf6c2" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "10d8e56b-a4c7-405e-9847-2bd6504d0140" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "10d8e56b-a4c7-405e-9847-2bd6504d0140" ], + "x-ms-correlation-request-id": [ "10d8e56b-a4c7-405e-9847-2bd6504d0140" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234627Z:10d8e56b-a4c7-405e-9847-2bd6504d0140" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 783FC8311DAF44708CD434D2B21EA065 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:27Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"99b97664-e19c-4c40-9fe5-b6f6e9a47d76\"},\"etag\":\"\\\"0a009e90-0000-0200-0000-6711a1cd0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjRiNGQ2MjVjLWVmYzctNDVmMy05MWViLWM2M2E1MmMyZjZiZiJ9?api-version=2023-07-01-preview\u0026t=638648055887669362\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5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KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ibpIsK1Ncz4yLCDzDn4u5ZAFNE5Ho7tIi3LUD285Fx-C_cTX150ObmrSj1qS6CCohMhdaX36zxt6uXrdwLpPeKSaKS-Iq04GDTO7b8WJ4fOF0XXH1rm2KFToy0w2b7UhXFproPK-jr65hFZQub84x6TF5H_O-DGT93yhkw-wP3BHahJWmJx5BJQtHhRuiA24jgPPlNMNuch-3n_uGhqLB7Nx3TSxMicJfjcH0IM2ICExGDWQJh1n1jjRFyYGiMG2-MK1774ztCqXyxeNtjq-2rPKcCQY9XntilsLYMYMREWHWjd9-wTyRwqj4T-KeDPlJoY6JsFUId9XM84SyoDH5w\u0026h=aNhDXY-W39mSiVJISUUjOnbnjBH0KIdO-SzFzsli0is" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "bea3edb6-0505-4998-8df2-6157972b3575" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjRiNGQ2MjVjLWVmYzctNDVmMy05MWViLWM2M2E1MmMyZjZiZiJ9?api-version=2023-07-01-preview\u0026t=638648055887502433\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYD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wDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=NUhGl3YlqW2_7sKTGOKdKKIPPAssI-m8Ktk9m0mYauI5oqnh3f-oNuaf0sA-XE72waQFlbIyQ9ONEhGrepOskkOMo6byVLHKxHvZDSO5pSdBKKt_YaiAHTOuv-CeHiif_CvLGJFSfTdXQ2Wt-_bUAdt0bhthb4UX-iOS96W1qEf4Xkvu54dZ0UKTKuNbKdRN3u_KbXLdN7L2fiHCNj5OjTrftZRxu_-S-5PVXlFBooWAnfh2kUKlG1WdGjOsJDO6OwfRB6WEjCA_xuDzayDgagMbGulTBiB_SV6rjkYk4QGTvdYxeVrxj-u3Mdzmcp5eB__HIW3LzlZxr0YY0e2Ujw\u0026h=uKZS7vg53eNxl6gDic59oMnaur1srYAp79avnrL3q78" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "bea3edb6-0505-4998-8df2-6157972b3575" ], + "x-ms-correlation-request-id": [ "bea3edb6-0505-4998-8df2-6157972b3575" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234628Z:bea3edb6-0505-4998-8df2-6157972b3575" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EC00A8B1CD004E3C96E10C6D0DDE057A Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:27Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "609" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"1600642e-0000-0200-0000-6711a1d40000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63\",\"name\":\"psdnsresolverdomainlistname63\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:32.977272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:28.3439921Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjRiNGQ2MjVjLWVmYzctNDVmMy05MWViLWM2M2E1MmMyZjZiZiJ9?api-version=2023-07-01-preview\u0026t=638648055887502433\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0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T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=NUhGl3YlqW2_7sKTGOKdKKIPPAssI-m8Ktk9m0mYauI5oqnh3f-oNuaf0sA-XE72waQFlbIyQ9ONEhGrepOskkOMo6byVLHKxHvZDSO5pSdBKKt_YaiAHTOuv-CeHiif_CvLGJFSfTdXQ2Wt-_bUAdt0bhthb4UX-iOS96W1qEf4Xkvu54dZ0UKTKuNbKdRN3u_KbXLdN7L2fiHCNj5OjTrftZRxu_-S-5PVXlFBooWAnfh2kUKlG1WdGjOsJDO6OwfRB6WEjCA_xuDzayDgagMbGulTBiB_SV6rjkYk4QGTvdYxeVrxj-u3Mdzmcp5eB__HIW3LzlZxr0YY0e2Ujw\u0026h=uKZS7vg53eNxl6gDic59oMnaur1srYAp79avnrL3q78+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjRiNGQ2MjVjLWVmYzctNDVmMy05MWViLWM2M2E1MmMyZjZiZiJ9?api-version=2023-07-01-preview\u0026t=638648055887502433\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1M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EGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=NUhGl3YlqW2_7sKTGOKdKKIPPAssI-m8Ktk9m0mYauI5oqnh3f-oNuaf0sA-XE72waQFlbIyQ9ONEhGrepOskkOMo6byVLHKxHvZDSO5pSdBKKt_YaiAHTOuv-CeHiif_CvLGJFSfTdXQ2Wt-_bUAdt0bhthb4UX-iOS96W1qEf4Xkvu54dZ0UKTKuNbKdRN3u_KbXLdN7L2fiHCNj5OjTrftZRxu_-S-5PVXlFBooWAnfh2kUKlG1WdGjOsJDO6OwfRB6WEjCA_xuDzayDgagMbGulTBiB_SV6rjkYk4QGTvdYxeVrxj-u3Mdzmcp5eB__HIW3LzlZxr0YY0e2Ujw\u0026h=uKZS7vg53eNxl6gDic59oMnaur1srYAp79avnrL3q78", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "984f4335-e07d-4656-b1bf-45fe0fec4dff" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "74afd045-4a24-4a71-ad5b-ce37cf220fa7" ], + "x-ms-correlation-request-id": [ "74afd045-4a24-4a71-ad5b-ce37cf220fa7" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234635Z:74afd045-4a24-4a71-ad5b-ce37cf220fa7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B879A053335F435894ED946F19F0603D Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:33Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "984f4335-e07d-4656-b1bf-45fe0fec4dff" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "2d1f4535-96eb-4f37-aa75-8539472cb4c3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "2d1f4535-96eb-4f37-aa75-8539472cb4c3" ], + "x-ms-correlation-request-id": [ "2d1f4535-96eb-4f37-aa75-8539472cb4c3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234635Z:2d1f4535-96eb-4f37-aa75-8539472cb4c3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: DE171B06F430418E8FFB5B1A2D716531 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:35Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "644" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bb3f7362-f238-43ac-9c1c-dff4966845a4\"},\"etag\":\"\\\"520397d8-0000-0200-0000-6711a1d70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63\",\"name\":\"psdnsresolverdomainlistname63\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:32.977272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:28.3439921Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "61311e91-c4e7-4059-b897-48050776c98f" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f5f60975-cf69-48e4-abcd-46fb7c7d57e9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "59997" ], + "x-ms-request-id": [ "f5f60975-cf69-48e4-abcd-46fb7c7d57e9" ], + "x-ms-correlation-request-id": [ "f5f60975-cf69-48e4-abcd-46fb7c7d57e9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234637Z:f5f60975-cf69-48e4-abcd-46fb7c7d57e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 764A9199041B4042BCDB40B2020E7E57 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:36Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1948" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"99b97664-e19c-4c40-9fe5-b6f6e9a47d76\"},\"etag\":\"\\\"0a009e90-0000-0200-0000-6711a1cd0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bb3f7362-f238-43ac-9c1c-dff4966845a4\"},\"etag\":\"\\\"520397d8-0000-0200-0000-6711a1d70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63\",\"name\":\"psdnsresolverdomainlistname63\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:32.977272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:28.3439921Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c1c4f78-c535-40d8-99c0-518e4db7a377\"},\"etag\":\"\\\"520372ce-0000-0200-0000-6711a16d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64\",\"name\":\"psdnsresolverdomainlistname64\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:42.7165814Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:44:42.7165814Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjZlZWZkZjg3LWUxY2ItNDFiZi1iZWRkLTA3M2Q1NDc1MDkxOCJ9?api-version=2023-07-01-preview\u0026t=638648055983117143\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQ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gP5bvdXgPalY_Ntmjj_d45YH2stVFO2zfHlS8E5SCSEXXPmIkHmTHWSwniTkddXTwEzozkDy6QAykA\u0026h=wx6-RfQ_CzxeBu_B778uRuuRm09lUt0e2ZaRqr23D88" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "b6aeefeb-6584-4601-a56f-de05ef1656dc" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjZlZWZkZjg3LWUxY2ItNDFiZi1iZWRkLTA3M2Q1NDc1MDkxOCJ9?api-version=2023-07-01-preview\u0026t=638648055982960901\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBY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KcUyuvo1mYhCkSEyx_1lvm_HOKgyTBvobp-YkUb8kRduIPU30y3nIdJhD9G42DRa49q0l_0UrA159SHrPl9tqspimxqV-mEAOOibA_-HbU1Fgq3lcqCxQpFUagOjhyIqBOeA3NPJgvApdZNzq5i9TXXnqa8Z2WzaD2g8OfwTwFpCHjb6i-DaQWVuSXEigpm6yTkiqkua43c6fMvTcdx4C-kRER0c9Wqy2L4u6sEO6tn7Q\u0026h=hTR2Ikx5rP6eVQXk0EqsiFToNS4hyz0qG_l61C18dlU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "b6aeefeb-6584-4601-a56f-de05ef1656dc" ], + "x-ms-correlation-request-id": [ "b6aeefeb-6584-4601-a56f-de05ef1656dc" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234638Z:b6aeefeb-6584-4601-a56f-de05ef1656dc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 48902A9BF44A407EA3FF793F7690B1D2 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:37Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "609" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"1600742e-0000-0200-0000-6711a1de0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64\",\"name\":\"psdnsresolverdomainlistname64\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:42.7165814Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:37.796073Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjZlZWZkZjg3LWUxY2ItNDFiZi1iZWRkLTA3M2Q1NDc1MDkxOCJ9?api-version=2023-07-01-preview\u0026t=638648055982960901\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbco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vobp-YkUb8kRduIPU30y3nIdJhD9G42DRa49q0l_0UrA159SHrPl9tqspimxqV-mEAOOibA_-HbU1Fgq3lcqCxQpFUagOjhyIqBOeA3NPJgvApdZNzq5i9TXXnqa8Z2WzaD2g8OfwTwFpCHjb6i-DaQWVuSXEigpm6yTkiqkua43c6fMvTcdx4C-kRER0c9Wqy2L4u6sEO6tn7Q\u0026h=hTR2Ikx5rP6eVQXk0EqsiFToNS4hyz0qG_l61C18dlU+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjZlZWZkZjg3LWUxY2ItNDFiZi1iZWRkLTA3M2Q1NDc1MDkxOCJ9?api-version=2023-07-01-preview\u0026t=638648055982960901\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu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jA6oww81Hy_u26hjvGsVCg79yhhrsUJujz4Atll3qv0XWTB38yx0ZIAiWB5qKx08jrAFZHRAwsKnMlkKcUyuvo1mYhCkSEyx_1lvm_HOKgyTBvobp-YkUb8kRduIPU30y3nIdJhD9G42DRa49q0l_0UrA159SHrPl9tqspimxqV-mEAOOibA_-HbU1Fgq3lcqCxQpFUagOjhyIqBOeA3NPJgvApdZNzq5i9TXXnqa8Z2WzaD2g8OfwTwFpCHjb6i-DaQWVuSXEigpm6yTkiqkua43c6fMvTcdx4C-kRER0c9Wqy2L4u6sEO6tn7Q\u0026h=hTR2Ikx5rP6eVQXk0EqsiFToNS4hyz0qG_l61C18dlU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "a9f5679b-fa6b-44e5-a83e-ae0a1867f178" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "3c7f7c43-93e9-4ef6-82d1-abfd84875900" ], + "x-ms-correlation-request-id": [ "3c7f7c43-93e9-4ef6-82d1-abfd84875900" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234644Z:3c7f7c43-93e9-4ef6-82d1-abfd84875900" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 959EB2E280E44BD6994F7C87C945A695 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:43Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "a9f5679b-fa6b-44e5-a83e-ae0a1867f178" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "5abed4e1-e58b-4d68-b1ed-b0e30446671f" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "5abed4e1-e58b-4d68-b1ed-b0e30446671f" ], + "x-ms-correlation-request-id": [ "5abed4e1-e58b-4d68-b1ed-b0e30446671f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234645Z:5abed4e1-e58b-4d68-b1ed-b0e30446671f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6B1E338D968844809437D7F0E2DF5562 Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:44Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "644" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c1c4f78-c535-40d8-99c0-518e4db7a377\"},\"etag\":\"\\\"5203e2d9-0000-0200-0000-6711a1e10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64\",\"name\":\"psdnsresolverdomainlistname64\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:42.7165814Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:37.796073Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverDomainList+[NoContext]+List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/providers/Microsoft.Network/dnsResolverDomainLists?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/providers/Microsoft.Network/dnsResolverDomainLists?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "d3eb2c89-f0ce-44b5-b74e-50576da1a59e" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-original-request-ids": [ "", "" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "60000" ], + "x-ms-request-id": [ "d4e4d0d6-3c40-43df-8d31-26a3471e86ac" ], + "x-ms-correlation-request-id": [ "d4e4d0d6-3c40-43df-8d31-26a3471e86ac" ], + "x-ms-routing-request-id": [ "WESTUS2:20241017T234646Z:d4e4d0d6-3c40-43df-8d31-26a3471e86ac" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2470816204F64C889034276E970C096E Ref B: CO6AA3150218017 Ref C: 2024-10-17T23:46:45Z" ], + "Date": [ "Thu, 17 Oct 2024 23:46:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "11501" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"99b97664-e19c-4c40-9fe5-b6f6e9a47d76\"},\"etag\":\"\\\"0a009e90-0000-0200-0000-6711a1cd0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname62\",\"name\":\"psdnsresolverdomainlistname62\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:23.8496689Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:19.3662829Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bb3f7362-f238-43ac-9c1c-dff4966845a4\"},\"etag\":\"\\\"520397d8-0000-0200-0000-6711a1d70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname63\",\"name\":\"psdnsresolverdomainlistname63\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:32.977272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:28.3439921Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c1c4f78-c535-40d8-99c0-518e4db7a377\"},\"etag\":\"\\\"5203e2d9-0000-0200-0000-6711a1e10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname64\",\"name\":\"psdnsresolverdomainlistname64\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T23:44:42.7165814Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T23:46:37.796073Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"ab.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e6ac017d-792c-4c7b-ab19-617925c41111\"},\"etag\":\"\\\"d1002b23-0000-0800-0000-66c321620000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/jainishan_rgtest/providers/Microsoft.Network/dnsResolverDomainLists/dl0\",\"name\":\"dl0\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-08-19T10:39:43.6154633Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-19T10:39:43.6154633Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"abc.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ef579d1b-f07c-44f1-bd88-e0328b3b42e7\"},\"etag\":\"\\\"0c007f7f-0000-0800-0000-66bb3a2f0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/jainishan_rgtest/providers/Microsoft.Network/dnsResolverDomainLists/jainishan_testdl\",\"name\":\"jainishan_testdl\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-07-26T10:30:27.8067671Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-07-26T10:30:27.8067671Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"abc.com.\",\"google.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"4085c6c9-68ef-4639-8035-331a140f91cd\"},\"etag\":\"\\\"0c00237b-0000-0800-0000-66bb3a010000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/jainishan_rgtest/providers/Microsoft.Network/dnsResolverDomainLists/jainishan_testdl1\",\"name\":\"jainishan_testdl1\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-07-26T10:44:01.6008573Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-07-26T10:44:01.6008573Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"14a21feb-659f-4976-9801-3d318d71bbdc\"},\"etag\":\"\\\"1600a06b-0000-0800-0000-671195c90000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg\",\"name\":\"psdnsresolverdomainlistname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T22:54:09.715974Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T22:55:04.5254533Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9e9a67cb-8415-4158-8aaf-b1dd312973f9\"},\"etag\":\"\\\"1600c66b-0000-0800-0000-671195d90000\\\"\",\"location\":\"westus2\",\"tags\":{\"key5143n\":\"value5143n\",\"key9ledz\":\"value9ledz\",\"keylvtyr\":\"valuelvtyr\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-17T22:54:17.292272Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T22:55:19.0927347Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"microsoft.com.\",\"google.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cace34bb-1738-45d9-a00b-f3ee87002ab3\"},\"etag\":\"\\\"1b00c3c8-0000-0800-0000-667b61b40000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/prmorampDLBugBashRG/providers/Microsoft.Network/dnsResolverDomainLists/prmorampDL1\",\"name\":\"prmorampDL1\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-26T00:12:18.6360927Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-26T00:12:18.6360927Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"microsoft.com.\",\"contoso.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9935d7b2-f1ec-4577-987f-d24a74daf6bd\"},\"etag\":\"\\\"20002748-0000-0800-0000-667d412a0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/RG-bugbash-vidya/providers/Microsoft.Network/dnsResolverDomainLists/DomainListBugBashVidya\",\"name\":\"DomainListBugBashVidya\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-26T18:01:01.7129415Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-26T18:01:01.7129415Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"google.ca.\",\"bing.com.\",\".\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f4a69c8b-35fc-4b84-95f1-b3a5ec8337c0\"},\"etag\":\"\\\"1b008fad-0000-0800-0000-667b54bc0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-jamesvoong-ite/providers/Microsoft.Network/dnsResolverDomainLists/dl-jamesvoong-bugbash\",\"name\":\"dl-jamesvoong-bugbash\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T22:48:10.7109992Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:37:30.8901622Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"google.ca.\",\"bing.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1153b144-b484-47a3-9b75-220b11f1fff9\"},\"etag\":\"\\\"1b009caf-0000-0800-0000-667b55ee0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-jamesvoong-ite/providers/Microsoft.Network/dnsResolverDomainLists/dl-jamesvoong-bugbash-2\",\"name\":\"dl-jamesvoong-bugbash-2\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T23:41:46.0845275Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:41:46.0845275Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"www.microsoft.com.\",\"www.bing.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"97e29930-481c-403a-9e4b-76efff0f8ef7\"},\"etag\":\"\\\"9600aca6-0000-0800-0000-66bfe4170000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-test-westus2-integrated-syn-dnspolicy-primary/providers/Microsoft.Network/dnsResolverDomainLists/dnsresolverdomainlist-test-westus2-integrated-syn-dnspolicy-primary-0\",\"name\":\"dnsresolverdomainlist-test-westus2-integrated-syn-dnspolicy-primary-0\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-08-16T23:43:09.0011929Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-16T23:43:09.0011929Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"www.microsoft.com.\",\"www.bing.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8d3ee902-22b6-4cce-a56b-5d200d6406c1\"},\"etag\":\"\\\"9600aaab-0000-0800-0000-66bfe45e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-test-westus2-integrated-syn-dnspolicy-primary/providers/Microsoft.Network/dnsResolverDomainLists/dnsresolverdomainlist-test-westus2-integrated-syn-dnspolicy-primary-1\",\"name\":\"dnsresolverdomainlist-test-westus2-integrated-syn-dnspolicy-primary-1\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-08-16T23:44:26.2273335Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-16T23:44:26.2273335Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"ubs.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5b4d874c-0c89-4003-8817-1f6d259e9565\"},\"etag\":\"\\\"1b002aae-0000-0800-0000-667b55120000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverDomainLists/domainlist-phase2\",\"name\":\"domainlist-phase2\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T23:20:42.3822476Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:20:42.3822476Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"ubs.com.\",\"sapo.pt.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8bc708e0-cfc9-4596-8cdc-629f2cc7f0e6\"},\"etag\":\"\\\"1b008bb3-0000-0800-0000-667b58850000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverDomainLists/phase2-domainlist\",\"name\":\"phase2-domainlist\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T23:21:48.8359499Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:53:40.2621948Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"ubs.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9743e8c8-b75a-4e8e-86d9-4a53d1100601\"},\"etag\":\"\\\"1b00f1ad-0000-0800-0000-667b54ea0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverDomainLists/secpol-domains-phase2\",\"name\":\"secpol-domains-phase2\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-06-25T23:38:13.4410269Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:38:13.4410269Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"domains\":[\"a.in.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9b329147-e6f6-498e-81f5-1956259984a1\"},\"etag\":\"\\\"3100979d-0000-0800-0000-66bc6ff40000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverDomainLists/dom1\",\"name\":\"dom1\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-08-14T08:50:56.1526674Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-14T08:50:56.1526674Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Tests.ps1 new file mode 100644 index 000000000000..6e0e53ce51f2 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverDomainList.Tests.ps1 @@ -0,0 +1,59 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDnsResolverDomainList')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDnsResolverDomainList.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzDnsResolverDomainList' { + It 'Get single DNS resolver domain list by name, expect DNS resolver domain list by name retrieved' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname62"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + $dnsResolver = Get-AzDnsResolverDomainList -DnsResolverDomainListName $dnsResolverDomainListName -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolver | Should -BeSuccessfullyCreated + } + + It 'List DNS resolver domain lists in a resource group, expected least number of DNS resolver domain lists retrieved' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname63"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + $dnsResolvers = Get-AzDnsResolverDomainList -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolvers.Count | Should -BeGreaterThan 0 + } + + It 'List DNS resolver domain lists in a subscription, expected least number of DNS resolver domain lists retrieved' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname64"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + $dnsResolvers = Get-AzDnsResolverDomainList + + # ASSERT + $dnsResolvers.Count | Should -BeGreaterThan 0 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverInboundEndpoint.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverInboundEndpoint.Recording.json index 05af342c88cd..80b705706c71 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverInboundEndpoint.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverInboundEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9\",\"startTime\":\"2022-02-16T01:28:35.0000000Z\",\"endTime\":\"2022-02-16T01:28:37.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjE5NzNhODU0LTNhZTYtNDNiNC05MjVlLWQxYzNhZTQ4NzdiOSJ9\",\"startTime\":\"2022-02-16T01:28:35.0000000Z\",\"endTime\":\"2022-02-16T01:28:37.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5503d213-cc54-468d-bbed-ba49a54e275d\"},\"etag\":\"\\\"00006f0e-0000-0200-0000-620c53450000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17\",\"name\":\"psdnsresolvername17\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:28:35.4818066Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:28:35.4818066Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5503d213-cc54-468d-bbed-ba49a54e275d\"},\"etag\":\"\\\"00006f0e-0000-0200-0000-620c53450000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17\",\"name\":\"psdnsresolvername17\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:28:35.4818066Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:28:35.4818066Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"ipConfigurations\": [\r\n {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==\",\"startTime\":\"2022-02-16T01:28:43.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==\",\"startTime\":\"2022-02-16T01:28:43.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==\",\"startTime\":\"2022-02-16T01:28:43.0000000Z\",\"endTime\":\"2022-02-16T01:28:52.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiJiZWFkOGVmZC1hZjdkLTRkOTMtYjRmZS02ZDY1YmY0YjIyYjYifQ==\",\"startTime\":\"2022-02-16T01:28:43.0000000Z\",\"endTime\":\"2022-02-16T01:28:52.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,14 +292,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"27e0cc51-fff1-4b7e-9db2-e5a5af7d969f\"},\"etag\":\"\\\"12002df9-0000-0200-0000-620c53540000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17\",\"name\":\"psinboundendpointname17\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T01:28:43.7380403Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:28:43.7380403Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"27e0cc51-fff1-4b7e-9db2-e5a5af7d969f\"},\"etag\":\"\\\"12002df9-0000-0200-0000-620c53540000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17\",\"name\":\"psinboundendpointname17\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T01:28:43.7380403Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:28:43.7380403Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Get-AzDnsResolverInboundEndpoint+[NoContext]+Get single inbound endpoint by name, expect inbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -335,15 +335,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"27e0cc51-fff1-4b7e-9db2-e5a5af7d969f\"},\"etag\":\"\\\"12002df9-0000-0200-0000-620c53540000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17\",\"name\":\"psinboundendpointname17\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T01:28:43.7380403Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:28:43.7380403Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"27e0cc51-fff1-4b7e-9db2-e5a5af7d969f\"},\"etag\":\"\\\"12002df9-0000-0200-0000-620c53540000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername17/inboundEndpoints/psinboundendpointname17\",\"name\":\"psinboundendpointname17\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T01:28:43.7380403Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:28:43.7380403Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,14 +419,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9\",\"startTime\":\"2022-02-16T01:29:22.0000000Z\",\"endTime\":\"2022-02-16T01:29:27.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVlOGQ0MGI3LWY5MzYtNDAwYi1hYTNhLTg0YTAyZjA0YmQyNSJ9\",\"startTime\":\"2022-02-16T01:29:22.0000000Z\",\"endTime\":\"2022-02-16T01:29:27.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -462,15 +462,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b1b56e26-f301-411f-8910-1ca7b3139bc9\"},\"etag\":\"\\\"0000750e-0000-0200-0000-620c53770000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18\",\"name\":\"psdnsresolvername18\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:29:22.2872869Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:29:22.2872869Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b1b56e26-f301-411f-8910-1ca7b3139bc9\"},\"etag\":\"\\\"0000750e-0000-0200-0000-620c53770000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18\",\"name\":\"psdnsresolvername18\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:29:22.2872869Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:29:22.2872869Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"ipConfigurations\": [\r\n {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -546,14 +546,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==\",\"startTime\":\"2022-02-16T01:29:29.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==\",\"startTime\":\"2022-02-16T01:29:29.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -589,14 +589,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==\",\"startTime\":\"2022-02-16T01:29:29.0000000Z\",\"endTime\":\"2022-02-16T01:29:41.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzYzg5YzM1My02Y2RmLTRlNjAtYTA0NS02ZTQ1YjI1N2I4NzMifQ==\",\"startTime\":\"2022-02-16T01:29:29.0000000Z\",\"endTime\":\"2022-02-16T01:29:41.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -632,14 +632,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9c823933-b277-418f-8ba6-7e99af465b38\"},\"etag\":\"\\\"120034f9-0000-0200-0000-620c53850000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18\",\"name\":\"psinboundendpointname18\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T01:29:29.8994117Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:29:29.8994117Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9c823933-b277-418f-8ba6-7e99af465b38\"},\"etag\":\"\\\"120034f9-0000-0200-0000-620c53850000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18\",\"name\":\"psinboundendpointname18\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T01:29:29.8994117Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:29:29.8994117Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -676,7 +676,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9c823933-b277-418f-8ba6-7e99af465b38\"},\"etag\":\"\\\"120034f9-0000-0200-0000-620c53850000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18\",\"name\":\"psinboundendpointname18\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T01:29:29.8994117Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:29:29.8994117Z\",\"lastModifiedByType\":\"User\"}}]}", + "Content": "{\"value\":[{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9c823933-b277-418f-8ba6-7e99af465b38\"},\"etag\":\"\\\"120034f9-0000-0200-0000-620c53850000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername18/inboundEndpoints/psinboundendpointname18\",\"name\":\"psinboundendpointname18\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T01:29:29.8994117Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:29:29.8994117Z\",\"lastModifiedByType\":\"User\"}}]}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverOutboundEndpoint.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverOutboundEndpoint.Recording.json index 3863a733cb7b..304abff7d5aa 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverOutboundEndpoint.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverOutboundEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9\",\"startTime\":\"2022-02-16T02:17:46.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9\",\"startTime\":\"2022-02-16T02:17:46.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+3": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,14 +122,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9\",\"startTime\":\"2022-02-16T02:17:46.0000000Z\",\"endTime\":\"2022-02-16T02:17:53.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYwYWZjYzBhLWM1YWUtNGQ5NC04NGFkLTUzMTYwNjBlZTg0NyJ9\",\"startTime\":\"2022-02-16T02:17:46.0000000Z\",\"endTime\":\"2022-02-16T02:17:53.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+4": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -165,15 +165,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"df597f9d-dbc0-4ccb-9432-843ea991e6e7\"},\"etag\":\"\\\"00003317-0000-0200-0000-620c5ed10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21\",\"name\":\"psdnsresolvername21\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:17:44.9947831Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:17:44.9947831Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"df597f9d-dbc0-4ccb-9432-843ea991e6e7\"},\"etag\":\"\\\"00003317-0000-0200-0000-620c5ed10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21\",\"name\":\"psdnsresolvername21\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:17:44.9947831Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:17:44.9947831Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+5": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+6": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=\",\"startTime\":\"2022-02-16T02:18:23.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=\",\"startTime\":\"2022-02-16T02:18:23.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+7": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,14 +292,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=\",\"startTime\":\"2022-02-16T02:18:23.0000000Z\",\"endTime\":\"2022-02-16T02:18:30.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzcxMTU0YjctMGQ5OS00NWVhLTk1NzktODc5ZDNmZjk1NDAyIn0=\",\"startTime\":\"2022-02-16T02:18:23.0000000Z\",\"endTime\":\"2022-02-16T02:18:30.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+8": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -335,14 +335,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d9c0eef3-03c6-418b-906e-335b2a7cece7\"},\"etag\":\"\\\"00000b51-0000-0200-0000-620c5ef60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21\",\"name\":\"psoutboundendpointname21\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:18:23.6509971Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:18:23.6509971Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d9c0eef3-03c6-418b-906e-335b2a7cece7\"},\"etag\":\"\\\"00000b51-0000-0200-0000-620c5ef60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21\",\"name\":\"psoutboundendpointname21\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:18:23.6509971Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:18:23.6509971Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+9": { + "Get-AzDnsResolverOutboundEndpoint+[NoContext]+Get single outbound endpoint by name, expect outbound endpoint by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -378,15 +378,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d9c0eef3-03c6-418b-906e-335b2a7cece7\"},\"etag\":\"\\\"00000b51-0000-0200-0000-620c5ef60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21\",\"name\":\"psoutboundendpointname21\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:18:23.6509971Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:18:23.6509971Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d9c0eef3-03c6-418b-906e-335b2a7cece7\"},\"etag\":\"\\\"00000b51-0000-0200-0000-620c5ef60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername21/outboundEndpoints/psoutboundendpointname21\",\"name\":\"psoutboundendpointname21\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:18:23.6509971Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:18:23.6509971Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -462,14 +462,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9\",\"startTime\":\"2022-02-16T02:19:02.0000000Z\",\"endTime\":\"2022-02-16T02:19:05.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjdjN2UyNzM5LThjYmItNGM5NS05YmE4LTE4YTU5NmI5MzZlMCJ9\",\"startTime\":\"2022-02-16T02:19:02.0000000Z\",\"endTime\":\"2022-02-16T02:19:05.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -505,15 +505,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"56b508ae-536d-4c7e-9a2e-ad133bd2c62a\"},\"etag\":\"\\\"00004617-0000-0200-0000-620c5f190000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22\",\"name\":\"psdnsresolvername22\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:19:02.5075091Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:19:02.5075091Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"56b508ae-536d-4c7e-9a2e-ad133bd2c62a\"},\"etag\":\"\\\"00004617-0000-0200-0000-620c5f190000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22\",\"name\":\"psdnsresolvername22\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:19:02.5075091Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:19:02.5075091Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -589,14 +589,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=\",\"startTime\":\"2022-02-16T02:19:09.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=\",\"startTime\":\"2022-02-16T02:19:09.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -632,14 +632,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=\",\"startTime\":\"2022-02-16T02:19:09.0000000Z\",\"endTime\":\"2022-02-16T02:19:18.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNmY3ZTcyNTUtZjgxMC00MGQxLTk0OTUtZTI1NmFmOTk2YjJmIn0=\",\"startTime\":\"2022-02-16T02:19:09.0000000Z\",\"endTime\":\"2022-02-16T02:19:18.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -675,14 +675,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a0450651-53ee-4457-9589-1db5379a3bf2\"},\"etag\":\"\\\"00002651-0000-0200-0000-620c5f260000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22\",\"name\":\"psoutboundendpointname22\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:19:09.9007858Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:19:09.9007858Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a0450651-53ee-4457-9589-1db5379a3bf2\"},\"etag\":\"\\\"00002651-0000-0200-0000-620c5f260000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22\",\"name\":\"psoutboundendpointname22\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:19:09.9007858Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:19:09.9007858Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+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/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -719,7 +719,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"value\":[{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a0450651-53ee-4457-9589-1db5379a3bf2\"},\"etag\":\"\\\"00002651-0000-0200-0000-620c5f260000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22\",\"name\":\"psoutboundendpointname22\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:19:09.9007858Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:19:09.9007858Z\",\"lastModifiedByType\":\"User\"}}]}", + "Content": "{\"value\":[{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a0450651-53ee-4457-9589-1db5379a3bf2\"},\"etag\":\"\\\"00002651-0000-0200-0000-620c5f260000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername22/outboundEndpoints/psoutboundendpointname22\",\"name\":\"psoutboundendpointname22\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:19:09.9007858Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:19:09.9007858Z\",\"lastModifiedByType\":\"User\"}}]}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Recording.json new file mode 100644 index 000000000000..b77805d32188 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Recording.json @@ -0,0 +1,511 @@ +{ + "Get-AzDnsResolverPolicy+[NoContext]+Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNzI5ZmRlMDItMzEzMS00ODYwLWFjNjktMjVjMWEyZDM1NDU1In0=?api-version=2023-07-01-preview\u0026t=638648744422114685\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1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ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=etJis8T5yZoELabpbuYYPOfxRrR1P62_4VcWFzMx1LVnuXblczhOoZmjwgzHhrLMlzAmFS7pNBZ4rX859mdIjIqXQZkVZRXcKAA_CxlCs6z_mBEoaeneljsrVAbKuNSEBMgxEM7SrELbwggw5YX0mMk1OT703ULbJ7f-zt30qxAeJrpdIUup3UkJ_Tuf3SD6_Jaj3TVUnB3ApPbovhk067nziD2Bdhs2Jj0hBk72CaYKzaLjo6a22lgtKYxe7dd5NeUr9qunCDMfsrMjNboS_puGq60bb1i8BdPex4rR4_aXpk36OcoLd-Z5lC8SfzSs6MU7pFqwLBHWvve0G55QFQ\u0026h=I3W0YfPu6iSJ734lmAD-pVbqcSsD3_e68lYUok0HSrI" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "6f995088-d334-4999-ad7d-8da1e9dbd2ed" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNzI5ZmRlMDItMzEzMS00ODYwLWFjNjktMjVjMWEyZDM1NDU1In0=?api-version=2023-07-01-preview\u0026t=638648744422114685\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvb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je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=NXyctWeUG58INrOTvwmqXCqoROJq6nyhaEQVBIHj-Wu7qPnmDXJ4N0rBwnfOKUdf5BqlTzYqCRut99ci81JWQZZ-Wu-M11sgphWVqpUXrKcIMPUUW645GiIDihv-dbuOtLv9tzBBZV0cZ0Nj4qSN-WKkd6douKVKoXtBz-tcoQw_8DoHD3oPJSN8AUdeAdyOMzFdFEnE9AnZYWEaBTbFHXtB7r41J0PlJDQNy2MaNpWPZDKlYtlR-xAHnI4NjPr8LZKI6zWTJs6MEOFLJRtEyK2o8YfLv8uX0O-YQMEr6rlgquAsRQM2RmBs3c-SMP3xE5VwGiVql4QooEZNxsDknA\u0026h=lKlbHyyRclw3EOBigm4jjqMeCqCz_w5JQApMPCLjrTU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "6f995088-d334-4999-ad7d-8da1e9dbd2ed" ], + "x-ms-correlation-request-id": [ "6f995088-d334-4999-ad7d-8da1e9dbd2ed" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185402Z:6f995088-d334-4999-ad7d-8da1e9dbd2ed" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2437CEB70FC44E0DB58D0F64E1B5C7CA Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:01Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"430076c6-0000-0200-0000-6712aec90000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNzI5ZmRlMDItMzEzMS00ODYwLWFjNjktMjVjMWEyZDM1NDU1In0=?api-version=2023-07-01-preview\u0026t=638648744422114685\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6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cJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=NXyctWeUG58INrOTvwmqXCqoROJq6nyhaEQVBIHj-Wu7qPnmDXJ4N0rBwnfOKUdf5BqlTzYqCRut99ci81JWQZZ-Wu-M11sgphWVqpUXrKcIMPUUW645GiIDihv-dbuOtLv9tzBBZV0cZ0Nj4qSN-WKkd6douKVKoXtBz-tcoQw_8DoHD3oPJSN8AUdeAdyOMzFdFEnE9AnZYWEaBTbFHXtB7r41J0PlJDQNy2MaNpWPZDKlYtlR-xAHnI4NjPr8LZKI6zWTJs6MEOFLJRtEyK2o8YfLv8uX0O-YQMEr6rlgquAsRQM2RmBs3c-SMP3xE5VwGiVql4QooEZNxsDknA\u0026h=lKlbHyyRclw3EOBigm4jjqMeCqCz_w5JQApMPCLjrTU+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNzI5ZmRlMDItMzEzMS00ODYwLWFjNjktMjVjMWEyZDM1NDU1In0=?api-version=2023-07-01-preview\u0026t=638648744422114685\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6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MRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=NXyctWeUG58INrOTvwmqXCqoROJq6nyhaEQVBIHj-Wu7qPnmDXJ4N0rBwnfOKUdf5BqlTzYqCRut99ci81JWQZZ-Wu-M11sgphWVqpUXrKcIMPUUW645GiIDihv-dbuOtLv9tzBBZV0cZ0Nj4qSN-WKkd6douKVKoXtBz-tcoQw_8DoHD3oPJSN8AUdeAdyOMzFdFEnE9AnZYWEaBTbFHXtB7r41J0PlJDQNy2MaNpWPZDKlYtlR-xAHnI4NjPr8LZKI6zWTJs6MEOFLJRtEyK2o8YfLv8uX0O-YQMEr6rlgquAsRQM2RmBs3c-SMP3xE5VwGiVql4QooEZNxsDknA\u0026h=lKlbHyyRclw3EOBigm4jjqMeCqCz_w5JQApMPCLjrTU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "b1ffe236-99e8-4495-8c7d-84ccc0c783f1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "cb4a90e2-cee9-4f0a-adc0-502b1f94cef0" ], + "x-ms-correlation-request-id": [ "cb4a90e2-cee9-4f0a-adc0-502b1f94cef0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185408Z:cb4a90e2-cee9-4f0a-adc0-502b1f94cef0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: AF1F3F1F64B34C2A8405E4874115A912 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:07Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "b1ffe236-99e8-4495-8c7d-84ccc0c783f1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "11b05380-7656-4b09-8955-a672ad535c13" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "11b05380-7656-4b09-8955-a672ad535c13" ], + "x-ms-correlation-request-id": [ "11b05380-7656-4b09-8955-a672ad535c13" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185409Z:11b05380-7656-4b09-8955-a672ad535c13" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 01A6EC0F575B441187EB1D39CAFD631C Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:08Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1de20c75-add1-458c-bfd6-65775ad69044\"},\"etag\":\"\\\"4a00e75d-0000-0200-0000-6712aecc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "9e527124-1968-4d6b-b1ed-d00ceae0fd24" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "88020a1e-7550-4ed8-b9d1-668d33bd6c93" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "88020a1e-7550-4ed8-b9d1-668d33bd6c93" ], + "x-ms-correlation-request-id": [ "88020a1e-7550-4ed8-b9d1-668d33bd6c93" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185410Z:88020a1e-7550-4ed8-b9d1-668d33bd6c93" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9DA26A8232924C43A9B021B73A0AF868 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:09Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1de20c75-add1-458c-bfd6-65775ad69044\"},\"etag\":\"\\\"4a00e75d-0000-0200-0000-6712aecc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGl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0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=fzKN3QlMEdQZSNlxnafS9NHRDOSHqC3qOvfDgjcbT8MyRwwgiW05441ww3omJSJWv5P-H1Rmnsr1fD_ixBkX7652vCB9K9v_clAxNlLODEkkpgNpwWvXvu7kAz7OFABE4hDeaXx5G-z5_b74nZqQDWWkZQk1UEqjk2rsyAlDKWKI6bK1CDM08_ESc-xif2OPkXZIqpapDLJ1iHBBnkHHcHq8NOLclvAS2GfcECNQXCW_sET67VO-H5zxT8_nDujJTMpqUsoN0CEuyAbk09GvJZ3suUzeyWOOjl8Z48iVyyjZYOBieVCRNjQeb8TVre2YS5G4lLztNe9lDVjSt1MgCQ\u0026h=Vnt3nLjkRwofqix3cHg9Zlsd4Jqc98qIpqZtddg6UlM" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "b7831d72-e7a1-4217-8569-510503e7137f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiOTY3YTcyNGItY2MxOS00Nzk4LTg0MDYtMWI3MzBkNjhiODQ5In0=?api-version=2023-07-01-preview\u0026t=638648744515319545\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGC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": [ "11999" ], + "x-ms-request-id": [ "b7831d72-e7a1-4217-8569-510503e7137f" ], + "x-ms-correlation-request-id": [ "b7831d72-e7a1-4217-8569-510503e7137f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185411Z:b7831d72-e7a1-4217-8569-510503e7137f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 30E82712C08E4CBDB9D47C75364D04C1 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:10Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:10 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"4300b6c6-0000-0200-0000-6712aed30000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63\",\"name\":\"psdnsresolverpolicyname63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:33.4111384Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:11.0163247Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoi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ANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=TiW5iyOjRBb0HF3p8ZvNlZm-Injg7gEQ8Pk2l8pWDcf94dVFRxAmB4bDLoeEboIM13x69g23iGWywzocj1KMcJF8reUrMpnQ-Ot5uRx9i61ZtPpGI5nUzG_Q0YJalnefuhJoLXz9KJ1bF6qOhdg37aqVrHyDy9fZ_f33RtNzyrsYYAr4s75Nwj4ync0_M8Bayd0JSqk_jo1gc9G0l1WX6hmu50Oh935POde5_KzjVXvQ10JZv4btdUgS4GQPt9xKm6Cwo71Fp1spwbm_vqVK2AFOjsXyJBoOOZLAyBFksY_NmqhMVGxvu4Qbc2-NXGEw1wwuPueTnPA3kdIkb3KT-A\u0026h=mNOWTnPLPBBjjwy8_c6viB9rtsZzGFkUfqHCZUfwoJs+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb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UHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=TiW5iyOjRBb0HF3p8ZvNlZm-Injg7gEQ8Pk2l8pWDcf94dVFRxAmB4bDLoeEboIM13x69g23iGWywzocj1KMcJF8reUrMpnQ-Ot5uRx9i61ZtPpGI5nUzG_Q0YJalnefuhJoLXz9KJ1bF6qOhdg37aqVrHyDy9fZ_f33RtNzyrsYYAr4s75Nwj4ync0_M8Bayd0JSqk_jo1gc9G0l1WX6hmu50Oh935POde5_KzjVXvQ10JZv4btdUgS4GQPt9xKm6Cwo71Fp1spwbm_vqVK2AFOjsXyJBoOOZLAyBFksY_NmqhMVGxvu4Qbc2-NXGEw1wwuPueTnPA3kdIkb3KT-A\u0026h=mNOWTnPLPBBjjwy8_c6viB9rtsZzGFkUfqHCZUfwoJs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "90e75b99-e582-4274-9dd7-cade46b9e515" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "4fba9567-ff03-4019-b5b1-46ecbe6306a4" ], + "x-ms-correlation-request-id": [ "4fba9567-ff03-4019-b5b1-46ecbe6306a4" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185418Z:4fba9567-ff03-4019-b5b1-46ecbe6306a4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5C759FEE9EF3430CA459ABC377C6E0B3 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:16Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "90e75b99-e582-4274-9dd7-cade46b9e515" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "1278c05e-c0e5-4cfc-b532-1155d2fad7f3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "1278c05e-c0e5-4cfc-b532-1155d2fad7f3" ], + "x-ms-correlation-request-id": [ "1278c05e-c0e5-4cfc-b532-1155d2fad7f3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185418Z:1278c05e-c0e5-4cfc-b532-1155d2fad7f3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: ECA32CA82DDD460498AC8A0104BD1686 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:18Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"838cb814-882a-4858-8098-39de02aa1ae1\"},\"etag\":\"\\\"4a008c5f-0000-0200-0000-6712aed60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63\",\"name\":\"psdnsresolverpolicyname63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:33.4111384Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:11.0163247Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "cc4eb1ec-fb7a-46b6-a8e2-6449c5316883" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8a76a43d-5e97-4877-9e9b-e7f4e0f0d799" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "59997" ], + "x-ms-request-id": [ "8a76a43d-5e97-4877-9e9b-e7f4e0f0d799" ], + "x-ms-correlation-request-id": [ "8a76a43d-5e97-4877-9e9b-e7f4e0f0d799" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185419Z:8a76a43d-5e97-4877-9e9b-e7f4e0f0d799" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0E76F6EF93AA47B9953191DA137AFF2F Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:19Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1781" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1de20c75-add1-458c-bfd6-65775ad69044\"},\"etag\":\"\\\"4a00e75d-0000-0200-0000-6712aecc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"838cb814-882a-4858-8098-39de02aa1ae1\"},\"etag\":\"\\\"4a008c5f-0000-0200-0000-6712aed60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63\",\"name\":\"psdnsresolverpolicyname63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:33.4111384Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:11.0163247Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"6c88c4d7-4fb7-4304-b12f-e8b09636b1f5\"},\"etag\":\"\\\"0e005c23-0000-0200-0000-6711a56d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64\",\"name\":\"psdnsresolverpolicyname64\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:43.1637547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:01:46.7468197Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTc3MjMwOWEtMGM4My00MDJjLWFkNjUtNmFjM2YyMTY0NWQ1In0=?api-version=2023-07-01-preview\u0026t=638648744607951859\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwL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RmdvTuL76Wm2SdLKN4uF6seNxO5OhgGsey6toJQerwh00bg\u0026h=zekCdRhmDw1yV_K6J4aRA8_0A3IVawN3jRgLR1wet6c" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1be59bda-fca5-4baf-9f44-3f9bbe56a91f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTc3MjMwOWEtMGM4My00MDJjLWFkNjUtNmFjM2YyMTY0NWQ1In0=?api-version=2023-07-01-preview\u0026t=638648744607951859\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvA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BxAmEcdGfLRbHam3AJrrqIMdE9fijN-85BgcNiZ2HXw_4LV6D2Km8pggio7JcM677cV5ZmUtTxeJq4v71XyNjjL-3bUABLu6nKbbSS9ic6sV5WLfXa6ozB4OfJ0HFzJo1vbwQ3tGLG_aw68dWqh5msY_HHA4qNRRxqe0a16ewrp_Iy58Xs_3cBMUwBE0nYGwp--W4H4nzig\u0026h=OXGD4CgHk1MhWHk4d5b2o0yeB-lgTqe_9VjydvTXC10" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1be59bda-fca5-4baf-9f44-3f9bbe56a91f" ], + "x-ms-correlation-request-id": [ "1be59bda-fca5-4baf-9f44-3f9bbe56a91f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185420Z:1be59bda-fca5-4baf-9f44-3f9bbe56a91f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 065E8631627F4107A48F74FD4278B00C Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:20Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"4300e6c6-0000-0200-0000-6712aedc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64\",\"name\":\"psdnsresolverpolicyname64\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:43.1637547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:20.3733096Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTc3MjMwOWEtMGM4My00MDJjLWFkNjUtNmFjM2YyMTY0NWQ1In0=?api-version=2023-07-01-preview\u0026t=638648744607951859\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAA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ZmUtTxeJq4v71XyNjjL-3bUABLu6nKbbSS9ic6sV5WLfXa6ozB4OfJ0HFzJo1vbwQ3tGLG_aw68dWqh5msY_HHA4qNRRxqe0a16ewrp_Iy58Xs_3cBMUwBE0nYGwp--W4H4nzig\u0026h=OXGD4CgHk1MhWHk4d5b2o0yeB-lgTqe_9VjydvTXC10+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/eastus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTc3MjMwOWEtMGM4My00MDJjLWFkNjUtNmFjM2YyMTY0NWQ1In0=?api-version=2023-07-01-preview\u0026t=638648744607951859\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTB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w6WoxrafUkN8p4t1mQWLxV6wqiMeQutA23Ey8e0cBxAmEcdGfLRbHam3AJrrqIMdE9fijN-85BgcNiZ2HXw_4LV6D2Km8pggio7JcM677cV5ZmUtTxeJq4v71XyNjjL-3bUABLu6nKbbSS9ic6sV5WLfXa6ozB4OfJ0HFzJo1vbwQ3tGLG_aw68dWqh5msY_HHA4qNRRxqe0a16ewrp_Iy58Xs_3cBMUwBE0nYGwp--W4H4nzig\u0026h=OXGD4CgHk1MhWHk4d5b2o0yeB-lgTqe_9VjydvTXC10", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "b029b4fc-2cdc-4539-8b5f-e52a8422be00" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 502, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "service" ], + "x-ms-request-id": [ "fcedbdc7-d173-4ab3-878c-e77b203950db" ], + "x-ms-correlation-request-id": [ "fcedbdc7-d173-4ab3-878c-e77b203950db" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185427Z:fcedbdc7-d173-4ab3-878c-e77b203950db" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2228AF84675F48238320F10DC6F3E145 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:25Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "132" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"InvalidGatewayHost\",\"message\":\"Host name resolution failed for \u0027Microsoft.Network\u0027; cannot fulfill the request.\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "b029b4fc-2cdc-4539-8b5f-e52a8422be00" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8fdb2fc1-d5ed-4b8e-bc11-6eb69bf6fe35" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8fdb2fc1-d5ed-4b8e-bc11-6eb69bf6fe35" ], + "x-ms-correlation-request-id": [ "8fdb2fc1-d5ed-4b8e-bc11-6eb69bf6fe35" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185428Z:8fdb2fc1-d5ed-4b8e-bc11-6eb69bf6fe35" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 36D72CA0F45B4A05BB058FC1D4B60DA4 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:27Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "589" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"6c88c4d7-4fb7-4304-b12f-e8b09636b1f5\"},\"etag\":\"\\\"4a002e61-0000-0200-0000-6712aee00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64\",\"name\":\"psdnsresolverpolicyname64\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:43.1637547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:20.3733096Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicy+[NoContext]+List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/providers/Microsoft.Network/dnsResolverPolicies?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/providers/Microsoft.Network/dnsResolverPolicies?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "69aa8d17-26f9-4edf-a2aa-fa9d2729573d" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_List1" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-original-request-ids": [ "", "", "" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "60000" ], + "x-ms-request-id": [ "311753c8-abf6-4b44-b27c-a6f3506170b2" ], + "x-ms-correlation-request-id": [ "311753c8-abf6-4b44-b27c-a6f3506170b2" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T185428Z:311753c8-abf6-4b44-b27c-a6f3506170b2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C9F7ED93A4C34DC2B1CEC1A598A1F4E5 Ref B: CO6AA3150219027 Ref C: 2024-10-18T18:54:28Z" ], + "Date": [ "Fri, 18 Oct 2024 18:54:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "25825" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"73dfebe3-e166-410a-93e8-9d23302e8ef1\"},\"etag\":\"\\\"0300c8d2-0000-0600-0000-66bb38f70000\\\"\",\"location\":\"westcentralus\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverPolicies/sp0001\",\"name\":\"sp0001\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-13T10:44:04.8908331Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-13T10:44:04.8908331Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"2ba8df99-2f41-4692-9724-7f72f9f4f197\"},\"etag\":\"\\\"0300e6cb-0000-0600-0000-66bb1ca40000\\\"\",\"location\":\"westcentralus\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverPolicies/sp01\",\"name\":\"sp01\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-13T08:43:11.308486Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-13T08:43:11.308486Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1de20c75-add1-458c-bfd6-65775ad69044\"},\"etag\":\"\\\"4a00e75d-0000-0200-0000-6712aecc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname62\",\"name\":\"psdnsresolverpolicyname62\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:01:27.4665349Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:01.7739727Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"838cb814-882a-4858-8098-39de02aa1ae1\"},\"etag\":\"\\\"4a008c5f-0000-0200-0000-6712aed60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname63\",\"name\":\"psdnsresolverpolicyname63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:33.4111384Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:11.0163247Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"6c88c4d7-4fb7-4304-b12f-e8b09636b1f5\"},\"etag\":\"\\\"4a002e61-0000-0200-0000-6712aee00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname64\",\"name\":\"psdnsresolverpolicyname64\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T23:59:43.1637547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T18:54:20.3733096Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ee827b68-4fd8-4af0-8d62-2be294e5eea9\"},\"etag\":\"\\\"550034fc-0000-0800-0000-66c321570000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/jainishan_rgtest/providers/Microsoft.Network/dnsResolverPolicies/sp0\",\"name\":\"sp0\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-19T10:41:25.6697395Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-19T10:41:25.6697395Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c0f7dd1-2758-4b6a-bc38-bc3d4bc9ebb2\"},\"etag\":\"\\\"18006170-0000-0800-0000-6711a7260000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg\",\"name\":\"psdnsresolverpolicyname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:09.3100587Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:09.3100587Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"766e397a-a1e0-435e-9fb0-499b12820093\"},\"etag\":\"\\\"1800ed71-0000-0800-0000-6711a7350000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyfy57a\":\"valuefy57a\",\"keya4orj\":\"valuea4orj\",\"keywflrg\":\"valuewflrg\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:24.2256242Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9fafc640-a650-4785-a46a-971e981d13da\"},\"etag\":\"\\\"160097e7-0000-0800-0000-671196160000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg\",\"name\":\"psdnsresolverpolicyname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T22:56:21.0167325Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T22:56:21.0167325Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b50dcd77-2cd4-4eb1-bb9a-1d4fcb02ce3c\"},\"etag\":\"\\\"1600d4e9-0000-0800-0000-671196290000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyuztsl\":\"valueuztsl\",\"keypajyo\":\"valuepajyo\",\"keycjnx2\":\"valuecjnx2\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-17T22:56:29.0807491Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-17T22:56:36.0670725Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"663968c2-4d72-4dc4-9c0e-3d3571fd09e2\"},\"etag\":\"\\\"4b00717a-0000-0800-0000-667b60250000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/prmorampDLBugBashRG/providers/Microsoft.Network/dnsResolverPolicies/prmorampSP1\",\"name\":\"prmorampSP1\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-26T00:18:01.111392Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-26T00:18:01.111392Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"4c9e7ac4-7aac-4ff2-9dd3-59ac42aa4c0e\"},\"etag\":\"\\\"3a01c2c0-0000-0800-0000-670846240000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/07bddb1b-2373-415d-add5-8bddc91c9b0f\",\"name\":\"07bddb1b-2373-415d-add5-8bddc91c9b0f\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:24:42.1818763Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:24:42.1818763Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb18ef75-1526-457c-9cac-6094da6c9727\"},\"etag\":\"\\\"3a0118e5-0000-0800-0000-670847dd0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/1cc54e7e-0447-4590-b863-8a7830afe720\",\"name\":\"1cc54e7e-0447-4590-b863-8a7830afe720\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:32:03.1355449Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:32:03.1355449Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"aeae4eaf-a850-4c3e-9cb8-ca9d9896c0ac\"},\"etag\":\"\\\"3a01afdc-0000-0800-0000-670847790000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/281da878-ff12-4311-b42c-654413430bee\",\"name\":\"281da878-ff12-4311-b42c-654413430bee\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:30:21.9075985Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:30:21.9075985Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a34328d9-c51d-42f3-b91a-21f8aaae12ea\"},\"etag\":\"\\\"3a0141de-0000-0800-0000-6708478d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/2b12dfc3-39e8-4cbf-8416-5d074758096e\",\"name\":\"2b12dfc3-39e8-4cbf-8416-5d074758096e\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:30:44.9086335Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:30:44.9086335Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"745d03b5-f2c4-4ff7-b110-479f2474e201\"},\"etag\":\"\\\"3a011de8-0000-0800-0000-670848050000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/3576311a-1e6d-46a3-a5ab-cbdf97f0a156\",\"name\":\"3576311a-1e6d-46a3-a5ab-cbdf97f0a156\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:32:41.7965573Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:32:41.7965573Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8b4cd7b6-52e7-45fa-9b39-706a6fc8592d\"},\"etag\":\"\\\"3a01e8df-0000-0800-0000-670847a10000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/3912ffe6-1b13-47fa-8665-71f01c717ec2\",\"name\":\"3912ffe6-1b13-47fa-8665-71f01c717ec2\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:31:03.0401875Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:31:03.0401875Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7d9b6c6d-0488-4cce-be9a-b01a6172b00d\"},\"etag\":\"\\\"3a012adb-0000-0800-0000-670847650000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/4ac01d4b-ae64-466b-8c97-4c645e927542\",\"name\":\"4ac01d4b-ae64-466b-8c97-4c645e927542\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:30:04.0961531Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:30:04.0961531Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5571ac86-f8df-4647-88fb-f761de504320\"},\"etag\":\"\\\"3a01bac5-0000-0800-0000-670846600000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/4da1d4f0-f90c-43e6-9323-27f1121067a0\",\"name\":\"4da1d4f0-f90c-43e6-9323-27f1121067a0\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:25:41.6238665Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:25:41.6238665Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a9866690-1645-4e76-a61c-d157c4cd09d5\"},\"etag\":\"\\\"3a016ed7-0000-0800-0000-6708473d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/5829266d-7e8e-4864-8926-f7fe6442d08d\",\"name\":\"5829266d-7e8e-4864-8926-f7fe6442d08d\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:29:21.5349632Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:29:21.5349632Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3f5f156e-3598-404e-86b0-616915a3c235\"},\"etag\":\"\\\"3a01d6e9-0000-0800-0000-670848190000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/5a61785c-44db-435b-a3f0-2dcca70c4d38\",\"name\":\"5a61785c-44db-435b-a3f0-2dcca70c4d38\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:33:05.3257494Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:33:05.3257494Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d3ac3b97-cd30-4d47-ae00-11a1fedfa109\"},\"etag\":\"\\\"3a01e6d3-0000-0800-0000-670847140000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/746452ee-230e-4754-932a-3c717169a1bf\",\"name\":\"746452ee-230e-4754-932a-3c717169a1bf\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:28:44.3722469Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:28:44.3722469Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1375f40f-0391-414a-8ec4-6cce6ef03e71\"},\"etag\":\"\\\"3a01e1cb-0000-0800-0000-670846b00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/76fae72b-a1c6-4457-85bf-7a7ae335f809\",\"name\":\"76fae72b-a1c6-4457-85bf-7a7ae335f809\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:27:05.1597025Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:27:05.1597025Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"15936839-ea11-4526-90a6-f4263dfe3834\"},\"etag\":\"\\\"3a014bca-0000-0800-0000-6708469c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/7e4a314f-8310-4029-9e1f-5c44b5be7f68\",\"name\":\"7e4a314f-8310-4029-9e1f-5c44b5be7f68\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:26:45.0130177Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:26:45.0130177Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"107ab16c-ea97-46a4-b4a3-4e870362eafc\"},\"etag\":\"\\\"3a01dcd8-0000-0800-0000-670847510000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/8e1c1985-b97a-455e-bce5-6c67503093f5\",\"name\":\"8e1c1985-b97a-455e-bce5-6c67503093f5\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:29:45.3442119Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:29:45.3442119Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"590bbc04-f88e-44ea-9011-6bca48d9ca71\"},\"etag\":\"\\\"3a013de3-0000-0800-0000-670847c90000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/ab74ffc6-c774-4d75-bb2f-460783cf321a\",\"name\":\"ab74ffc6-c774-4d75-bb2f-460783cf321a\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:31:45.4796413Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:31:45.4796413Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"481c50cc-8379-414a-a2b8-8cfc25f28baf\"},\"etag\":\"\\\"3a0121c4-0000-0800-0000-6708464c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/bc170143-dec0-4207-9999-d305bc9cdec8\",\"name\":\"bc170143-dec0-4207-9999-d305bc9cdec8\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:25:22.4690379Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:25:22.4690379Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"07285fdb-a93a-4148-9bc5-7ab7df9cf644\"},\"etag\":\"\\\"3a0129c7-0000-0800-0000-670846740000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/c69ca561-608c-46be-b91f-f1249f1a3c0f\",\"name\":\"c69ca561-608c-46be-b91f-f1249f1a3c0f\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:26:01.3745006Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:26:01.3745006Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1bb1befc-fa65-4db4-a354-3ecd3243069e\"},\"etag\":\"\\\"3a0177c2-0000-0800-0000-670846380000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/cf7f7052-6d99-4a9c-a913-526422de28cc\",\"name\":\"cf7f7052-6d99-4a9c-a913-526422de28cc\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:25:02.938123Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:25:02.938123Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"80430be0-6e18-40e8-8aa1-ab1357884fb6\"},\"etag\":\"\\\"3a010bc9-0000-0800-0000-6708468a0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/d293f3d2-70d9-498b-bfea-9b1e1fd86f63\",\"name\":\"d293f3d2-70d9-498b-bfea-9b1e1fd86f63\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:26:26.0059582Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:26:26.0059582Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"2966884d-3be3-4e74-bacc-1fd94d8daedf\"},\"etag\":\"\\\"3a0185e6-0000-0800-0000-670847f10000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/d570db0b-384b-408e-83c4-f49b37e65898\",\"name\":\"d570db0b-384b-408e-83c4-f49b37e65898\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:32:22.8657739Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:32:22.8657739Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"76ab03fa-7131-4507-ac0d-9fd1c8712ccb\"},\"etag\":\"\\\"3a01b0d5-0000-0800-0000-670847290000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/dd6094f9-b785-445e-a14d-bb834e985f78\",\"name\":\"dd6094f9-b785-445e-a14d-bb834e985f78\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:29:02.8746217Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:29:02.8746217Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"65914ba8-08a5-4319-9c6d-8b57b87b3681\"},\"etag\":\"\\\"3a01a0e1-0000-0800-0000-670847b50000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/e1097daa-d845-452b-be3f-aca40357d953\",\"name\":\"e1097daa-d845-452b-be3f-aca40357d953\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:31:22.0653166Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:31:22.0653166Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5f127bf5-6205-4c1d-872c-619c16119559\"},\"etag\":\"\\\"3a013ed2-0000-0800-0000-670847000000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-azdnsrr-dev-sg-integration-test/providers/Microsoft.Network/dnsResolverPolicies/f778ba34-772e-40d5-9c9d-6a96c6e98ac4\",\"name\":\"f778ba34-772e-40d5-9c9d-6a96c6e98ac4\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-10T21:28:26.1381037Z\",\"createdByType\":\"Application\",\"lastModifiedAt\":\"2024-10-10T21:28:26.1381037Z\",\"lastModifiedByType\":\"Application\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dff8e643-82b0-48ff-837c-f9471156d4d5\"},\"etag\":\"\\\"50009fb4-0000-0800-0000-667c4b110000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/RG-bugbash-vidya/providers/Microsoft.Network/dnsResolverPolicies/SP-bugbash-vidya\",\"name\":\"SP-bugbash-vidya\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-26T16:57:11.7251523Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-26T16:57:11.7251523Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fe80567f-76a3-4d1b-a834-49b93698cebc\"},\"etag\":\"\\\"4b00b556-0000-0800-0000-667b4e780000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-jamesvoong-ite/providers/Microsoft.Network/dnsResolverPolicies/policy-jamesvoong-bugbash\",\"name\":\"policy-jamesvoong-bugbash\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-25T22:46:40.4114172Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T22:46:40.4114172Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb1dfd6c-0a56-4e1b-a2e0-d0ae164477a2\"},\"etag\":\"\\\"1c00e17a-0000-0800-0000-66bfe4020000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-test-westus2-integrated-syn-dnspolicy-primary/providers/Microsoft.Network/dnsResolverPolicies/dnsresolverpolicy-test-westus2-integrated-syn-dnspolicy-primary-0\",\"name\":\"dnsresolverpolicy-test-westus2-integrated-syn-dnspolicy-primary-0\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-16T23:42:50.3661752Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-16T23:42:50.3661752Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7a3c559d-64cf-44fa-a42e-89d1df313d0c\"},\"etag\":\"\\\"1c00a57f-0000-0800-0000-66bfe4500000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-test-westus2-integrated-syn-dnspolicy-primary/providers/Microsoft.Network/dnsResolverPolicies/dnsresolverpolicy-test-westus2-integrated-syn-dnspolicy-primary-1\",\"name\":\"dnsresolverpolicy-test-westus2-integrated-syn-dnspolicy-primary-1\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-16T23:44:14.0527389Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-16T23:44:14.0527389Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8ccf4cd0-b638-47d5-868f-a90a7e6dc9f2\"},\"etag\":\"\\\"4b00656b-0000-0800-0000-667b59c60000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverPolicies/bugbash-phase2\",\"name\":\"bugbash-phase2\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-25T23:30:34.2444575Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:30:34.2444575Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9eceeaa1-c898-4a2e-ad72-de8fc5c9bf5f\"},\"etag\":\"\\\"4b001162-0000-0800-0000-667b548a0000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/sergio-phase2/providers/Microsoft.Network/dnsResolverPolicies/secpol-phase2\",\"name\":\"secpol-phase2\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-06-25T23:36:41.601492Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-06-25T23:36:41.601492Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"397573ea-4673-4f30-a247-36559fa97f92\"},\"etag\":\"\\\"9e02650c-0000-0800-0000-66bb39920000\\\"\",\"location\":\"westus2\",\"tags\":{},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverPolicies/sp000001\",\"name\":\"sp000001\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-08-13T10:46:35.2451401Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-08-13T10:46:35.2451401Z\",\"lastModifiedByType\":\"User\"}},{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f14d1944-d730-483d-be40-1298c3ee549f\"},\"etag\":\"\\\"38004fdf-0000-0800-0000-66a09b930000\\\"\",\"location\":\"westus2\",\"tags\":{\"a\":\"b\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/shreyagoel/providers/Microsoft.Network/dnsResolverPolicies/sp111\",\"name\":\"sp111\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-07-17T16:35:17.1724946Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-07-24T06:13:37.415701Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Tests.ps1 new file mode 100644 index 000000000000..111831eb8b2e --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicy.Tests.ps1 @@ -0,0 +1,59 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDnsResolverPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDnsResolverPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzDnsResolverPolicy' { + It 'Get single DNS resolver policy by name, expect DNS resolver policy by name retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname62"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + $dnsResolver = Get-AzDnsResolverPolicy -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolver | Should -BeSuccessfullyCreated + } + + It 'List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname63"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + $dnsResolvers = Get-AzDnsResolverPolicy -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolvers.Count | Should -BeGreaterThan 0 + } + + It 'List DNS resolver policies in a subscription, expected least number of DNS resolver policies retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname64"; + $resourceGroupName = "powershell-test-rg-debug-get"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + $dnsResolvers = Get-AzDnsResolverPolicy + + # ASSERT + $dnsResolvers.Count | Should -BeGreaterThan 0 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Recording.json new file mode 100644 index 000000000000..75e809e6f19b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Recording.json @@ -0,0 +1,937 @@ +{ + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvb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tADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=jM0odWJYif2YdCh3GGku0ribwoRwZg9a0EGvyY0dUbFMsL06r3iiRmw6UB__EqXWw-U-XfLJE7D0vN4393ipQbwV9vGCilsEpvKaZ4b6z6UEQIJ2QDTemZ9xaoNdKo-KV-lnfkCdmzeXiflAieeruJS3cpdjo0eJzxC-o6vRLu13bdkxjQpv0_cd4GgAFt9MIFAH0FPlgxWdRuO13QA0PKNP4NB2mQwgSBfzohX-VrEPW6BKdfeY9Mg9xLUyA2t3GwMEryxzmuZLaXkcu2wWghccRzOWZ_oU0ItgdJZVO1--jCAGPU9v_nH3Ri9j9RX4JKkNezy7EvYvmJIi_KFFww\u0026h=sKGWCECMiG06gOclMI2yENrI1hX-wNAIqTePoxD5EGM" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "91907d3d-4e66-4b94-9265-77942c12344b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=?api-version=2023-07-01-preview\u0026t=638650842485807304\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrB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x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "91907d3d-4e66-4b94-9265-77942c12344b" ], + "x-ms-correlation-request-id": [ "91907d3d-4e66-4b94-9265-77942c12344b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051048Z:91907d3d-4e66-4b94-9265-77942c12344b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0D631004A7F54AAD9F20CDFE432744DA Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:10:48Z" ], + "Date": [ "Mon, 21 Oct 2024 05:10:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7001dbe7-0000-0800-0000-6715e2580000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag\",\"name\":\"psdnsresolverpolicyforrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:07:28.0353737Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:10:48.4088397Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEb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5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=WLI5wZ9Y2qc0RLkCwtw6zufGb9hdkZqiZp2WKRUsQidZuwgsfh7fhaT30iuoSGbvE-5WMYTnu98fSAYnpWTjnTUaGSWNYjlRnRbweXHB689Axd-0u_4-IUakcKfMgCoZePKd0yxn9IW9aBVdbkrej013Xa-3SOHeikFZ2jaMqDj6a1EU_oVX2inq0jvqOmUPwHd5h5uFPueE0MUBzcu8VDto9wOL4eWAAxZkk-GTSfy8vdA1LrLYuLr1xyHyFZMl6j4ZLC4Y5sEuJB_HcEkSDQtBb_m5tNhjdPTKDHOr7hHU0vvOBe2dfh67mGhCDgDpeCaf-_usnv2jzAG5sxqr4w\u0026h=wneERg8LMf7RTAnQ4aSmqgyRvjvjZyNn-GSGmeX8Ksc+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=?api-version=2023-07-01-preview\u0026t=638650842485807304\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFB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BBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=WLI5wZ9Y2qc0RLkCwtw6zufGb9hdkZqiZp2WKRUsQidZuwgsfh7fhaT30iuoSGbvE-5WMYTnu98fSAYnpWTjnTUaGSWNYjlRnRbweXHB689Axd-0u_4-IUakcKfMgCoZePKd0yxn9IW9aBVdbkrej013Xa-3SOHeikFZ2jaMqDj6a1EU_oVX2inq0jvqOmUPwHd5h5uFPueE0MUBzcu8VDto9wOL4eWAAxZkk-GTSfy8vdA1LrLYuLr1xyHyFZMl6j4ZLC4Y5sEuJB_HcEkSDQtBb_m5tNhjdPTKDHOr7hHU0vvOBe2dfh67mGhCDgDpeCaf-_usnv2jzAG5sxqr4w\u0026h=wneERg8LMf7RTAnQ4aSmqgyRvjvjZyNn-GSGmeX8Ksc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "f4f44c4c-c78d-492f-9371-f3acdbec1bbc" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "139db171-2e22-47d5-a013-e30e6a11f7c7" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "139db171-2e22-47d5-a013-e30e6a11f7c7" ], + "x-ms-correlation-request-id": [ "139db171-2e22-47d5-a013-e30e6a11f7c7" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051053Z:139db171-2e22-47d5-a013-e30e6a11f7c7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 942A769367094E8099E43FDA550DAFE1 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:10:53Z" ], + "Date": [ "Mon, 21 Oct 2024 05:10:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "519" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=\",\"startTime\":\"2024-10-21T05:10:48.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=?api-version=2023-07-01-preview\u0026t=638650842485807304\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4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aGSWNYjlRnRbweXHB689Axd-0u_4-IUakcKfMgCoZePKd0yxn9IW9aBVdbkrej013Xa-3SOHeikFZ2jaMqDj6a1EU_oVX2inq0jvqOmUPwHd5h5uFPueE0MUBzcu8VDto9wOL4eWAAxZkk-GTSfy8vdA1LrLYuLr1xyHyFZMl6j4ZLC4Y5sEuJB_HcEkSDQtBb_m5tNhjdPTKDHOr7hHU0vvOBe2dfh67mGhCDgDpeCaf-_usnv2jzAG5sxqr4w\u0026h=wneERg8LMf7RTAnQ4aSmqgyRvjvjZyNn-GSGmeX8Ksc+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=?api-version=2023-07-01-preview\u0026t=638650842485807304\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofX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zufGb9hdkZqiZp2WKRUsQidZuwgsfh7fhaT30iuoSGbvE-5WMYTnu98fSAYnpWTjnTUaGSWNYjlRnRbweXHB689Axd-0u_4-IUakcKfMgCoZePKd0yxn9IW9aBVdbkrej013Xa-3SOHeikFZ2jaMqDj6a1EU_oVX2inq0jvqOmUPwHd5h5uFPueE0MUBzcu8VDto9wOL4eWAAxZkk-GTSfy8vdA1LrLYuLr1xyHyFZMl6j4ZLC4Y5sEuJB_HcEkSDQtBb_m5tNhjdPTKDHOr7hHU0vvOBe2dfh67mGhCDgDpeCaf-_usnv2jzAG5sxqr4w\u0026h=wneERg8LMf7RTAnQ4aSmqgyRvjvjZyNn-GSGmeX8Ksc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "f4f44c4c-c78d-492f-9371-f3acdbec1bbc" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ad3a9bd6-6c43-4401-8244-06712ca2792b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ad3a9bd6-6c43-4401-8244-06712ca2792b" ], + "x-ms-correlation-request-id": [ "ad3a9bd6-6c43-4401-8244-06712ca2792b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051124Z:ad3a9bd6-6c43-4401-8244-06712ca2792b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EF3BFA1AB7724450A6A4DCB1F71C3CFC Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:23Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMzU0MjlkNzUtZDAwNy00NGNjLWI1YWQtYzViNGFjNzAxOTEyIn0=\",\"startTime\":\"2024-10-21T05:10:48.0000000Z\",\"endTime\":\"2024-10-21T05:10:56.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "f4f44c4c-c78d-492f-9371-f3acdbec1bbc" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "28c01dc4-0e99-48c7-960b-2fb02f02e1df" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "28c01dc4-0e99-48c7-960b-2fb02f02e1df" ], + "x-ms-correlation-request-id": [ "28c01dc4-0e99-48c7-960b-2fb02f02e1df" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051124Z:28c01dc4-0e99-48c7-960b-2fb02f02e1df" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 55C62069D4E649F3B02AF95D10F07806 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:24Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ff9153f5-6401-43b8-b583-f107292d635a\"},\"etag\":\"\\\"2a0098a9-0000-0800-0000-6715e2600000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag\",\"name\":\"psdnsresolverpolicyforrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:07:28.0353737Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:10:48.4088397Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc2ODMtNDBlYS1hMjc4LWQ1NDM4NjNkYzcxNSJ9?api-version=2023-07-01-preview\u0026t=638650842852341379\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhk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l2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Jbow8S3Hd4C8jHngjDAbIYNPSZuFBM-56PwFexPBkoAGrXWNME_xGYLfKlQkoFE6sEu_8rwSN3IuQKezXCg1CrsquaUoUK49Ekuxd71hC3VITHrI9voyfgovndO1PTY9s4z2L-a21ldbnMqN9jgQHY4Cj4MWivbIvvtXh4sPwVlrVUhufsOn9mK5AxZHizfQkiyNXHCZLVRyaNI2XL5k5tKFiovg_eQ1TllEmQpL5VAmnqXoIF3Y8pFyqkXIuMJvT-3HJBhkvJpzAVM6GP7LxeoTBEDvaPpHkfejBSUw2Pdy9Cw6grkXUbaSiG6KVZNcQftpy3s1u0KmtQP4oW-LQw\u0026h=Ys4jRdohjAy8i1EeH_YF38zwsKMWjrVCDx5EqW2qzQE" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1725f33e-d7a5-488f-8dde-fff8af99ee53" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxp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gwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hOznHzzKodICU_8Az0q43ReUxWqWtdW71T0P5VnfoseK7cqU0cfrPaX5P9bBeUqq4_PUzotghz3TsT3xnQFnLM_apoDEoza-PuQjPZ9M3bxUIXRFldwsQKY9J4MaeUJ8nLQAwnMb3eK4loFAZiFMA4PzVpZytPWAq45MQG-EcZaIzlEai_18Pdktz8chOxJcQzFJyCrSKYPhN7iC-5vWsa-RXQLAFsWxPTnKGYGmnmLuXG3s0F7RrrMubAkYNRMT8F8uMc-XK__n8pqLCpf94pRo5MWOC-mrPLX3k5sQwXHkLRhp8JvDZOj_U_ZeJKLoQIfzb8Gi_OYt9_9Aa2hA-A\u0026h=bqWtk6tRh_AToTVzk7VPUd3fef0aTNy4wLORQfabLZ8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1725f33e-d7a5-488f-8dde-fff8af99ee53" ], + "x-ms-correlation-request-id": [ "1725f33e-d7a5-488f-8dde-fff8af99ee53" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051125Z:1725f33e-d7a5-488f-8dde-fff8af99ee53" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 531DB41E703A4FC99B15B1A23E6F08EE Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:24Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "634" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"70013af2-0000-0800-0000-6715e27d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\",\"name\":\"psdnsresolverdomainlistforrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:06.3893415Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:25.0622602Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGV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QUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hOznHzzKodICU_8Az0q43ReUxWqWtdW71T0P5VnfoseK7cqU0cfrPaX5P9bBeUqq4_PUzotghz3TsT3xnQFnLM_apoDEoza-PuQjPZ9M3bxUIXRFldwsQKY9J4MaeUJ8nLQAwnMb3eK4loFAZiFMA4PzVpZytPWAq45MQG-EcZaIzlEai_18Pdktz8chOxJcQzFJyCrSKYPhN7iC-5vWsa-RXQLAFsWxPTnKGYGmnmLuXG3s0F7RrrMubAkYNRMT8F8uMc-XK__n8pqLCpf94pRo5MWOC-mrPLX3k5sQwXHkLRhp8JvDZOj_U_ZeJKLoQIfzb8Gi_OYt9_9Aa2hA-A\u0026h=bqWtk6tRh_AToTVzk7VPUd3fef0aTNy4wLORQfabLZ8+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc2ODMtNDBlYS1hMjc4LWQ1NDM4NjNkYzcxNSJ9?api-version=2023-07-01-preview\u0026t=638650842852185135\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFB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3fef0aTNy4wLORQfabLZ8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "3db22acf-936d-4c81-b897-d6da8aa8486b" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "586ecb73-bdb5-4762-be9c-4e24e3310ca8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "586ecb73-bdb5-4762-be9c-4e24e3310ca8" ], + "x-ms-correlation-request-id": [ "586ecb73-bdb5-4762-be9c-4e24e3310ca8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051130Z:586ecb73-bdb5-4762-be9c-4e24e3310ca8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2AF7520BB6E3489D81DF67EF5A5CA05D Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:30Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc2ODMtNDBlYS1hMjc4LWQ1NDM4NjNkYzcxNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjUyZmQwNTY1LTc2ODMtNDBlYS1hMjc4LWQ1NDM4NjNkYzcxNSJ9\",\"startTime\":\"2024-10-21T05:11:25.0000000Z\",\"endTime\":\"2024-10-21T05:11:26.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "3db22acf-936d-4c81-b897-d6da8aa8486b" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b2cc52db-d77a-4fa4-a71c-f22f0944bfc5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b2cc52db-d77a-4fa4-a71c-f22f0944bfc5" ], + "x-ms-correlation-request-id": [ "b2cc52db-d77a-4fa4-a71c-f22f0944bfc5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051130Z:b2cc52db-d77a-4fa4-a71c-f22f0944bfc5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B9ABB4CFCCFE414697DAA7964D770BA0 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:30Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "669" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1d1e1c7a-c5b4-4ab7-8163-b90a843210b9\"},\"etag\":\"\\\"3d00c177-0000-0800-0000-6715e27e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\",\"name\":\"psdnsresolverdomainlistforrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:06.3893415Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:25.0622602Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "474" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9?api-version=2023-07-01-preview\u0026t=638650842913925445\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRM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ileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=WGnGVMirIskPzT4g1yWt0lRZb6WqSUhTKe-KHXsWVtVqnN375jys8XR2terK-syb8X1vrR_GdEwccXJK4OdKPKl7jb38MS6jd6fBEu-x876MsSyqIMSB4-cwwpzH69rJsJRe_TgHpj1HtXdXv0TlIgdJ8ur_EB_BMarIbMvS3ISZVvpK5Q3mgSZGjQhotnfLD3b0wlRXLCsjmAkw8EVSf51kAp6oDYHMY783eOTM5yv-lG7-TDFpT06mIq_la6resiOuUMTZTQABHaPsYhAPJ3q_k3TCj7YNc9RGIvrVfBk5MCS48Zddu0Y8NYWKoDn93K43ppNY6UqAdh7P3Rrt3A\u0026h=9L494wSJ5yulZ98EBKxwqZxIMKIYdvgcNkYEvXTISzc" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "cbac06df-614e-418d-80a0-c9a6294b380f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY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5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=txPrJ-6sHO5rI1SfAcbN2dYnG0kLuzoK16Hbpo1lO_HsUcgUPjP2Db9b8t7tFpzwj7yCig_TEuoDX7MQS4nfTuFtHBWpJnZCuien5BTBUDWFvt3EKBKxs2guqQL4Lz0h90UwnwY_cDEIoCAM_CryIIk_7vMeCvGRgJLwfVDNwAOxgEU4hrCIW5NWtrN2zSwAY6vJ81BTOjw7vsGHdVlUXfHQx5UoJW5-aienMgaw1D0H5hGRu_77VL6CNW3dcm9rXNPdxhvC1eOYjHExebXQt9l2unif1DFPOTocPaxWg6cGKOHfVWP-FAnW2Ry0qpiskmQNVqmgsvg_Ta0tdcJF4Q\u0026h=pwnjKdM5HHuuMkkMwjPEdphSN6ZXlJy6YhpzIwWGIIg" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "cbac06df-614e-418d-80a0-c9a6294b380f" ], + "x-ms-correlation-request-id": [ "cbac06df-614e-418d-80a0-c9a6294b380f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051131Z:cbac06df-614e-418d-80a0-c9a6294b380f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 22DF1BDD8FF242C0818FB6F6BC24F588 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:30Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "984" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2a0028ae-0000-0800-0000-6715e2830000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag\",\"name\":\"psdnssecurityrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:13.5261021Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:31.2206703Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9?api-version=2023-07-01-preview\u0026t=638650842913769210\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwY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OHfVWP-FAnW2Ry0qpiskmQNVqmgsvg_Ta0tdcJF4Q\u0026h=pwnjKdM5HHuuMkkMwjPEdphSN6ZXlJy6YhpzIwWGIIg+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9?api-version=2023-07-01-preview\u0026t=638650842913769210\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4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2zSwAY6vJ81BTOjw7vsGHdVlUXfHQx5UoJW5-aienMgaw1D0H5hGRu_77VL6CNW3dcm9rXNPdxhvC1eOYjHExebXQt9l2unif1DFPOTocPaxWg6cGKOHfVWP-FAnW2Ry0qpiskmQNVqmgsvg_Ta0tdcJF4Q\u0026h=pwnjKdM5HHuuMkkMwjPEdphSN6ZXlJy6YhpzIwWGIIg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "9609f278-ff72-4948-a5af-df117b971ee5" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "7b3bc6c7-35bc-4397-b33f-c753282ee6eb" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "7b3bc6c7-35bc-4397-b33f-c753282ee6eb" ], + "x-ms-correlation-request-id": [ "7b3bc6c7-35bc-4397-b33f-c753282ee6eb" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051136Z:7b3bc6c7-35bc-4397-b33f-c753282ee6eb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5103DCD7248A4D7C89B03117568544BF Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:36Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImRkMGZmMDY3LTA3MjMtNDJiNy1hYzZjLWQzODU1YWM1NGI1ZiJ9\",\"startTime\":\"2024-10-21T05:11:31.0000000Z\",\"endTime\":\"2024-10-21T05:11:36.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "9609f278-ff72-4948-a5af-df117b971ee5" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "930935ad-bdfc-4df4-8199-6be75bb1fd33" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "930935ad-bdfc-4df4-8199-6be75bb1fd33" ], + "x-ms-correlation-request-id": [ "930935ad-bdfc-4df4-8199-6be75bb1fd33" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051137Z:930935ad-bdfc-4df4-8199-6be75bb1fd33" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4274E8A39833422A8C3E4D249B8C5058 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:36Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"060023f2-0000-0800-0000-6715e2880000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag\",\"name\":\"psdnssecurityrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:13.5261021Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:31.2206703Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Get single DNS security rule by name, expect DNS security rule by name retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "77b5c449-9ed9-4dd6-b9a7-d6d9cb31d1f6" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f5ef1ad7-21ee-476c-a9f6-fefc95ae7518" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f5ef1ad7-21ee-476c-a9f6-fefc95ae7518" ], + "x-ms-correlation-request-id": [ "f5ef1ad7-21ee-476c-a9f6-fefc95ae7518" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051137Z:f5ef1ad7-21ee-476c-a9f6-fefc95ae7518" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 06A2222A20994B82AD33425FD049DDE2 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:37Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename1m0cdag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"060023f2-0000-0800-0000-6715e2880000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename1m0cdag/dnsSecurityRules/psdnssecurityrulename1m0cdag\",\"name\":\"psdnssecurityrulename1m0cdag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:13.5261021Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:31.2206703Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmE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NeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=E0a7pbAn63rK4GyDowjz_mB3y5arFDNmCAqmViA6VYp552XTO240NkNA5dY3C3tXWlEOvG_25YgdqoNctSrJtbnLpEbuNXGuwlSLCQQ2p3FwmqRSuVwDNus2hLQtzORGCUoDXdJnGEbeU64kuMYQKsAbV7QnkS9Z62Du4oLuVj64GPrepGA5L1cotOnICZGi2m_LcZ6ELSIsvOeJyUcRsRVYXdokidGROED68UsJ8DNDz8At0sv_KRnnmrU9CfLT9isEHSUPv4md00vAzw1bJppKqe40icjli0SNjAAwVeOcbbWvNTPV9GvNuJjECmcdd2MFkys4KKGyusMaLycr0g\u0026h=DhkZDfntp-iJ57v1-k6eJvFSGyvNUjpuBYO8Lr808kQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "6e6b3f12-1aa2-4f9b-9436-c78cfdce504b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fj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AUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=dm4rZSLR_ZEpzy35Pvxxtz516ueRCnmlB02vVTJ_nNRxgyj6dXkEFXXV73-3jpF1iYR9sAztjcjCz4FNbmO3N5GzEItuetaHMsi3MzFNMwiy31SDMMJlXLVUliNHl29mht_JSkgvDFvRrjejv7dpvpQfFADhvGLm_vg0C8MS9uuvRzK_UDCGKOfGgJ9tEHXE7DqyKwT_IZWcquMudPASqElN79o7XfskCMfehsCLi0OIW6gKBlazERGbw_ew8YYUs5gE0_Oi5TId2mVNntbvpWdwMIeAXyl4kD-e9FyD1rTLFC--_1zLAyy6hNFe2xgvN2upY-6ayQonxexRjfjT7g\u0026h=vHiRubMwfGpaZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "6e6b3f12-1aa2-4f9b-9436-c78cfdce504b" ], + "x-ms-correlation-request-id": [ "6e6b3f12-1aa2-4f9b-9436-c78cfdce504b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051138Z:6e6b3f12-1aa2-4f9b-9436-c78cfdce504b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0F461168DA5F46F2BB3EE9999496EA3E Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:37Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"700147f6-0000-0800-0000-6715e28a0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag\",\"name\":\"psdnsresolverpolicyforrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:20.9635303Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:37.9554892Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYD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Eu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=dm4rZSLR_ZEpzy35Pvxxtz516ueRCnmlB02vVTJ_nNRxgyj6dXkEFXXV73-3jpF1iYR9sAztjcjCz4FNbmO3N5GzEItuetaHMsi3MzFNMwiy31SDMMJlXLVUliNHl29mht_JSkgvDFvRrjejv7dpvpQfFADhvGLm_vg0C8MS9uuvRzK_UDCGKOfGgJ9tEHXE7DqyKwT_IZWcquMudPASqElN79o7XfskCMfehsCLi0OIW6gKBlazERGbw_ew8YYUs5gE0_Oi5TId2mVNntbvpWdwMIeAXyl4kD-e9FyD1rTLFC--_1zLAyy6hNFe2xgvN2upY-6ayQonxexRjfjT7g\u0026h=vHiRubMwfGpaZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKC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DQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=dm4rZSLR_ZEpzy35Pvxxtz516ueRCnmlB02vVTJ_nNRxgyj6dXkEFXXV73-3jpF1iYR9sAztjcjCz4FNbmO3N5GzEItuetaHMsi3MzFNMwiy31SDMMJlXLVUliNHl29mht_JSkgvDFvRrjejv7dpvpQfFADhvGLm_vg0C8MS9uuvRzK_UDCGKOfGgJ9tEHXE7DqyKwT_IZWcquMudPASqElN79o7XfskCMfehsCLi0OIW6gKBlazERGbw_ew8YYUs5gE0_Oi5TId2mVNntbvpWdwMIeAXyl4kD-e9FyD1rTLFC--_1zLAyy6hNFe2xgvN2upY-6ayQonxexRjfjT7g\u0026h=vHiRubMwfGpaZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "3cc0c76a-36fe-4ad8-b413-b9cf351a9340" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "dd7b4197-5881-45bd-9103-25bc8092c1df" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "dd7b4197-5881-45bd-9103-25bc8092c1df" ], + "x-ms-correlation-request-id": [ "dd7b4197-5881-45bd-9103-25bc8092c1df" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051143Z:dd7b4197-5881-45bd-9103-25bc8092c1df" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E75E4EA2E591483E9F3B0FE6D8E0BACA Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:11:43Z" ], + "Date": [ "Mon, 21 Oct 2024 05:11:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "519" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=\",\"startTime\":\"2024-10-21T05:11:38.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDj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paZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=?api-version=2023-07-01-preview\u0026t=638650842981429701\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgY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FC--_1zLAyy6hNFe2xgvN2upY-6ayQonxexRjfjT7g\u0026h=vHiRubMwfGpaZFgosUXZX9p6QrF8DH5NPM1N_eqMhT4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "3cc0c76a-36fe-4ad8-b413-b9cf351a9340" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "004373f3-4a16-487d-8c89-80fed7a78dab" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "004373f3-4a16-487d-8c89-80fed7a78dab" ], + "x-ms-correlation-request-id": [ "004373f3-4a16-487d-8c89-80fed7a78dab" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051213Z:004373f3-4a16-487d-8c89-80fed7a78dab" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 85945DB1BF9A486EA30F6309AC563B84 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:13Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTI0YTU0OTktMWQ0Ny00NzQ2LWJmMTEtYTQwZTg3ZDZlMzZjIn0=\",\"startTime\":\"2024-10-21T05:11:38.0000000Z\",\"endTime\":\"2024-10-21T05:11:46.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "3cc0c76a-36fe-4ad8-b413-b9cf351a9340" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "17e08cdd-f5be-4338-99ba-f2b08e1a02b3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "17e08cdd-f5be-4338-99ba-f2b08e1a02b3" ], + "x-ms-correlation-request-id": [ "17e08cdd-f5be-4338-99ba-f2b08e1a02b3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051214Z:17e08cdd-f5be-4338-99ba-f2b08e1a02b3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9964351361B940CF95F74B0DAA35B7EF Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:14Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a6f16ac6-8625-4427-96a7-a8c895d0d976\"},\"etag\":\"\\\"2a0024b0-0000-0800-0000-6715e2920000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag\",\"name\":\"psdnsresolverpolicyforrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:20.9635303Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:11:37.9554892Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9?api-version=2023-07-01-preview\u0026t=638650843348536385\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQ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ffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Wq_9UiVN1jDEXFQ2cpRwQRyzNrsFVZrS00QUWuHItoh_LVxDTVQr-weyFo995JRJixRDeadb7nm8ImCdpRe-mn4bPqgUGRf8uh36ikZQ3blpFpDBnXJ4kD0R7solfiFxYev8w2x4YxIUc2f95rrd5boBziqZl7Re1j1dya52bWDTUnzoqsjALOfUns73Dzn04vTEfwMkqL7doqnqB8dJueoCD8IwZBv2NHcAXd6nMXC2RQEIbB1dyA6pKX6hUkpFxRxUTdd-l5trnZsPm4SB82wF6DDnRjpLa_fJLjQ678VpLZP8Vdlq-291JIWOU2tWYToeNxbhLzvr_Lefkx6hxQ\u0026h=71ZPUT3jOFUs8Dg0nIw1sEtKj16Fd8MKReIWlwVLvXM" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "e790500c-2a2c-44bc-8592-2c7e0735e5a0" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9?api-version=2023-07-01-preview\u0026t=638650843348380139\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNj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CQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hmpYlEEuvaonYUEyoRsVbtO6jIPqezhmc4VW7Aox3m85odESoRZCKCh-vf7GCJuCgPMaeKmAk2cpvvftuSyGasX1FP9vFzHYTWg8D3M4uKLbX9rB4B49D40n18o25sh2dMzAL-9WqjUQOE_v2h9CXewPp9A2GGFazduJi4lVswX_VK02HzKW-E0M5odkOc-eWjBvFwKxMzk_S0octDxJqcHjwJ5waWlll4k39NJlM5zHak45IYV_va4vhE2JIfRhsJCkI93XcTPwpQW9xHvXyH1vrapXs0hkHzgqTX3A0xBJg2rcCvZhVesWBkLq4M-7BhnJe4LfBMLTkkAMnRCriA\u0026h=McHGA5BVRSSNd6hRoBF2eVkgdpD3mK6Gyca8FSfMyeI" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "e790500c-2a2c-44bc-8592-2c7e0735e5a0" ], + "x-ms-correlation-request-id": [ "e790500c-2a2c-44bc-8592-2c7e0735e5a0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051214Z:e790500c-2a2c-44bc-8592-2c7e0735e5a0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: ECD619CDE15643E48A0F9E5F44B5BF71 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:14Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "634" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"71011b01-0000-0800-0000-6715e2ae0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\",\"name\":\"psdnsresolverdomainlistforrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:27.8891117Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:14.7442696Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9?api-version=2023-07-01-preview\u0026t=638650843348380139\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMj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AUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hmpYlEEuvaonYUEyoRsVbtO6jIPqezhmc4VW7Aox3m85odESoRZCKCh-vf7GCJuCgPMaeKmAk2cpvvftuSyGasX1FP9vFzHYTWg8D3M4uKLbX9rB4B49D40n18o25sh2dMzAL-9WqjUQOE_v2h9CXewPp9A2GGFazduJi4lVswX_VK02HzKW-E0M5odkOc-eWjBvFwKxMzk_S0octDxJqcHjwJ5waWlll4k39NJlM5zHak45IYV_va4vhE2JIfRhsJCkI93XcTPwpQW9xHvXyH1vrapXs0hkHzgqTX3A0xBJg2rcCvZhVesWBkLq4M-7BhnJe4LfBMLTkkAMnRCriA\u0026h=McHGA5BVRSSNd6hRoBF2eVkgdpD3mK6Gyca8FSfMyeI+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9?api-version=2023-07-01-preview\u0026t=638650843348380139\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR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BggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=hmpYlEEuvaonYUEyoRsVbtO6jIPqezhmc4VW7Aox3m85odESoRZCKCh-vf7GCJuCgPMaeKmAk2cpvvftuSyGasX1FP9vFzHYTWg8D3M4uKLbX9rB4B49D40n18o25sh2dMzAL-9WqjUQOE_v2h9CXewPp9A2GGFazduJi4lVswX_VK02HzKW-E0M5odkOc-eWjBvFwKxMzk_S0octDxJqcHjwJ5waWlll4k39NJlM5zHak45IYV_va4vhE2JIfRhsJCkI93XcTPwpQW9xHvXyH1vrapXs0hkHzgqTX3A0xBJg2rcCvZhVesWBkLq4M-7BhnJe4LfBMLTkkAMnRCriA\u0026h=McHGA5BVRSSNd6hRoBF2eVkgdpD3mK6Gyca8FSfMyeI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "f4a5cfc3-ab21-4a38-8573-3f1adc225685" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c6b98926-fc93-4b01-92a9-d6c7522c00fe" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c6b98926-fc93-4b01-92a9-d6c7522c00fe" ], + "x-ms-correlation-request-id": [ "c6b98926-fc93-4b01-92a9-d6c7522c00fe" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051220Z:c6b98926-fc93-4b01-92a9-d6c7522c00fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 75E5462D7CBA4552AB9C326928CE4AA9 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:19Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQzYjg4MTQ4LWE2MjktNDljNy05NDVhLWM0YzJhNmZjNjM4NyJ9\",\"startTime\":\"2024-10-21T05:12:14.0000000Z\",\"endTime\":\"2024-10-21T05:12:16.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "f4a5cfc3-ab21-4a38-8573-3f1adc225685" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "455b3484-53d7-4d9e-9d7f-b3a29e8e6d40" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "455b3484-53d7-4d9e-9d7f-b3a29e8e6d40" ], + "x-ms-correlation-request-id": [ "455b3484-53d7-4d9e-9d7f-b3a29e8e6d40" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051220Z:455b3484-53d7-4d9e-9d7f-b3a29e8e6d40" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B39BC399634B431CAD8CDE12210EE7B1 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:20Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "669" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"4716b1c8-a59f-4c92-9044-4a848aa93bb3\"},\"etag\":\"\\\"3d00c97e-0000-0800-0000-6715e2b00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\",\"name\":\"psdnsresolverdomainlistforrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:08:27.8891117Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:14.7442696Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "474" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9?api-version=2023-07-01-preview\u0026t=638650843417357758\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUB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5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=RehoulOthOUXtOAqTCZT7zPSEROkL64kuOnXvxqpOQXDDTesvzUy23m-PWP5HDjyAtacfTetILPNh3WpNkn4PHNTfiCEOFMhbRShtngAKD2OFlkHLrq2h21u6ComJGN2dRjyWPLC246qx_NA-JSKGQUoZF1YGjzZehOEFum_KStefgWohRjyIjNXhjcEiGiDgrkyEGoFfEZkxtL84zP_Hucrq_M-l0vUlVxNtYZb6pEZWium9inab185Sgv6hHNoDnbCzQAzIEKhIsvrW9SQhmnJ1SZ-6g-lzUZPgEZoY1OPnBY2_TmvcatLZ4JwKIHP8x16K1m4ikGCM6zQJAu0xA\u0026h=ebRwWLbQJE04INxt8VsTs0wyoWVeNfENvjxI8woaapQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "d7030fed-6a5f-4525-9987-77180862e7b5" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9?api-version=2023-07-01-preview\u0026t=638650843417201563\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdj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oQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7lupxgiBDrDPXpVW02IZyoF1MgulXrQ6X_sYllrpzXAA3XhY8DiqOy2FYMR16Blgf_F5SkMXz1T2_ptcDxKtyaG0-QD_6xj8uD5xKzuTMplHuf2Zx77Ozcb7EpzoZzxp2wu0RnLx30fHZn3AltJs8bH1g75baIg76D7bWAQNHuttYe5WT_DcLlNMzXF-zgc6BOXcPZF4ShfDS37Uwnx6jM86_-aDKUG8pyEd82OiwRRvr7RKWBlFdoLQNBDV7-AEEheyrUBXqjzfp14Aur2Q8jWzKPUgqVKDouYQMKPzrWiMVF2Rr6eCS1v46vscUQ16ONYx-iR9uDpXk1iHrGWkTQ\u0026h=WJhK-ePhbg0R7AR_Oq2lKk2KiPMZ5SzMJScwYGkKwyM" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "d7030fed-6a5f-4525-9987-77180862e7b5" ], + "x-ms-correlation-request-id": [ "d7030fed-6a5f-4525-9987-77180862e7b5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051221Z:d7030fed-6a5f-4525-9987-77180862e7b5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 30DA89E3116548EF9C2110D7BEF21A64 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:20Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:20 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "984" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2a00a4b4-0000-0800-0000-6715e2b50000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag\",\"name\":\"psdnssecurityrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:09:05.1151602Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:21.5639053Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9?api-version=2023-07-01-preview\u0026t=638650843417201563\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjAN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DAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7lupxgiBDrDPXpVW02IZyoF1MgulXrQ6X_sYllrpzXAA3XhY8DiqOy2FYMR16Blgf_F5SkMXz1T2_ptcDxKtyaG0-QD_6xj8uD5xKzuTMplHuf2Zx77Ozcb7EpzoZzxp2wu0RnLx30fHZn3AltJs8bH1g75baIg76D7bWAQNHuttYe5WT_DcLlNMzXF-zgc6BOXcPZF4ShfDS37Uwnx6jM86_-aDKUG8pyEd82OiwRRvr7RKWBlFdoLQNBDV7-AEEheyrUBXqjzfp14Aur2Q8jWzKPUgqVKDouYQMKPzrWiMVF2Rr6eCS1v46vscUQ16ONYx-iR9uDpXk1iHrGWkTQ\u0026h=WJhK-ePhbg0R7AR_Oq2lKk2KiPMZ5SzMJScwYGkKwyM+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1h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ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7lupxgiBDrDPXpVW02IZyoF1MgulXrQ6X_sYllrpzXAA3XhY8DiqOy2FYMR16Blgf_F5SkMXz1T2_ptcDxKtyaG0-QD_6xj8uD5xKzuTMplHuf2Zx77Ozcb7EpzoZzxp2wu0RnLx30fHZn3AltJs8bH1g75baIg76D7bWAQNHuttYe5WT_DcLlNMzXF-zgc6BOXcPZF4ShfDS37Uwnx6jM86_-aDKUG8pyEd82OiwRRvr7RKWBlFdoLQNBDV7-AEEheyrUBXqjzfp14Aur2Q8jWzKPUgqVKDouYQMKPzrWiMVF2Rr6eCS1v46vscUQ16ONYx-iR9uDpXk1iHrGWkTQ\u0026h=WJhK-ePhbg0R7AR_Oq2lKk2KiPMZ5SzMJScwYGkKwyM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "e2059170-3b30-4cd9-9f45-9b6c7126dc50" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8821246b-9054-463e-8197-18bbb97625b0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8821246b-9054-463e-8197-18bbb97625b0" ], + "x-ms-correlation-request-id": [ "8821246b-9054-463e-8197-18bbb97625b0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051227Z:8821246b-9054-463e-8197-18bbb97625b0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 231F4891A0A1468997F624726095E31A Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjcwN2EzYWJjLWY1NDctNDRhNC1hNDg4LTg2OWI4ODg2MGIwNyJ9\",\"startTime\":\"2024-10-21T05:12:21.0000000Z\",\"endTime\":\"2024-10-21T05:12:26.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "e2059170-3b30-4cd9-9f45-9b6c7126dc50" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "69291829-2c13-431f-9221-14d1a66f8e5b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "69291829-2c13-431f-9221-14d1a66f8e5b" ], + "x-ms-correlation-request-id": [ "69291829-2c13-431f-9221-14d1a66f8e5b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051227Z:69291829-2c13-431f-9221-14d1a66f8e5b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E20FC87BBCCD44128C32F46F71584E53 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:27Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"06005af2-0000-0800-0000-6715e2ba0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag\",\"name\":\"psdnssecurityrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:09:05.1151602Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:21.5639053Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "06813e77-67be-4e18-81f9-379f2430639d" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "0b0d18f3-6cce-4a1f-ad5b-0d4b3bb7e9cd" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "59999" ], + "x-ms-request-id": [ "0b0d18f3-6cce-4a1f-ad5b-0d4b3bb7e9cd" ], + "x-ms-correlation-request-id": [ "0b0d18f3-6cce-4a1f-ad5b-0d4b3bb7e9cd" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T051227Z:0b0d18f3-6cce-4a1f-ad5b-0d4b3bb7e9cd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 84490FD3B40C47F99FFA7658B2733A41 Ref B: CO6AA3150218039 Ref C: 2024-10-21T05:12:27Z" ], + "Date": [ "Mon, 21 Oct 2024 05:12:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "997" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename2n1edag\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"06005af2-0000-0800-0000-6715e2ba0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename2n1edag/dnsSecurityRules/psdnssecurityrulename2n1edag\",\"name\":\"psdnssecurityrulename2n1edag\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:09:05.1151602Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:12:21.5639053Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..da7abdd95f34 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 @@ -0,0 +1,50 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDnsResolverPolicyDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDnsResolverPolicyDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzDnsResolverPolicyDnsSecurityRule' { + It 'Get single DNS security rule by name, expect DNS security rule by name retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename1m0cdag"; + $dnsSecurityRuleName = "psdnssecurityrulename1m0cdag"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename1m0cdag"; + $resourceGroupName = "powershell-test-rg-debug-get"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT - ASSERT + {Get-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName} | Should -Not -Throw + } + + It 'List DNS resolver policies in a resource group, expected least number of DNS resolver policies retrieved' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename2n1edag"; + $dnsSecurityRuleName = "psdnssecurityrulename2n1edag"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename2n1edag"; + $resourceGroupName = "powershell-test-rg-debug-get"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT + $securityRules = Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + $securityRules.Count | Should -BeGreaterThan 0 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Recording.json new file mode 100644 index 000000000000..b73eb1b8d96a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Recording.json @@ -0,0 +1,640 @@ +{ + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "f9e206f2-c86a-47cc-a7d3-48645ff85831" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=?api-version=2023-07-01-preview\u0026t=638650877713407886\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2V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YTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=HOm89snumR5iQ3SEyJpx9fvPkvvrGDG0Av_Q2Wqmtowi1DnLvA00sHg7Zec1p4101AQKI2EtJP1fxANrLmGdmmxAhMbK5bR_pZ7ZRKK9cdGUrX3ReehPrMHf6W9qXFCP0GFGhK_qdkYQZZiFD-gvL5uUXYUiAp0Zzw3FI0OvnRFdeOU1uTQqwF8d8hajcgfjvkbMzWGNFNawAISQGUR2YG7aDGVqlNM3pEUMa7hWyG1Jpr3Zgv9hOPcBe47kE42fFvz2MLcOLh63QauVKEq121cgMGELvxsFaElr3h3f1L2k9rn4XKOylsNWmDw7OAxxS6Pvxz2DbH_4sHFDnkmlLw\u0026h=qssPt4m4ZEbzvpU_9GOhX99LAqXZi2ILNRUhqFzSbNk" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "f9e206f2-c86a-47cc-a7d3-48645ff85831" ], + "x-ms-correlation-request-id": [ "f9e206f2-c86a-47cc-a7d3-48645ff85831" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060931Z:f9e206f2-c86a-47cc-a7d3-48645ff85831" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 07196EE0EE5845C1ABA65AB8E1E20179 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:29Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"74010ddf-0000-0800-0000-6715f01b0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a\",\"name\":\"psdnsresolverpolicyforlinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:31.060822Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:31.060822Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=?api-version=2023-07-01-preview\u0026t=638650877713407886\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCA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nffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=HOm89snumR5iQ3SEyJpx9fvPkvvrGDG0Av_Q2Wqmtowi1DnLvA00sHg7Zec1p4101AQKI2EtJP1fxANrLmGdmmxAhMbK5bR_pZ7ZRKK9cdGUrX3ReehPrMHf6W9qXFCP0GFGhK_qdkYQZZiFD-gvL5uUXYUiAp0Zzw3FI0OvnRFdeOU1uTQqwF8d8hajcgfjvkbMzWGNFNawAISQGUR2YG7aDGVqlNM3pEUMa7hWyG1Jpr3Zgv9hOPcBe47kE42fFvz2MLcOLh63QauVKEq121cgMGELvxsFaElr3h3f1L2k9rn4XKOylsNWmDw7OAxxS6Pvxz2DbH_4sHFDnkmlLw\u0026h=qssPt4m4ZEbzvpU_9GOhX99LAqXZi2ILNRUhqFzSbNk+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=?api-version=2023-07-01-preview\u0026t=638650877713407886\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEz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PeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=HOm89snumR5iQ3SEyJpx9fvPkvvrGDG0Av_Q2Wqmtowi1DnLvA00sHg7Zec1p4101AQKI2EtJP1fxANrLmGdmmxAhMbK5bR_pZ7ZRKK9cdGUrX3ReehPrMHf6W9qXFCP0GFGhK_qdkYQZZiFD-gvL5uUXYUiAp0Zzw3FI0OvnRFdeOU1uTQqwF8d8hajcgfjvkbMzWGNFNawAISQGUR2YG7aDGVqlNM3pEUMa7hWyG1Jpr3Zgv9hOPcBe47kE42fFvz2MLcOLh63QauVKEq121cgMGELvxsFaElr3h3f1L2k9rn4XKOylsNWmDw7OAxxS6Pvxz2DbH_4sHFDnkmlLw\u0026h=qssPt4m4ZEbzvpU_9GOhX99LAqXZi2ILNRUhqFzSbNk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "9b258cf5-2d2d-4ed1-840b-07a4c03e995c" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "bbe7889b-38b0-44ab-bc74-b00def41aaeb" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "bbe7889b-38b0-44ab-bc74-b00def41aaeb" ], + "x-ms-correlation-request-id": [ "bbe7889b-38b0-44ab-bc74-b00def41aaeb" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060936Z:bbe7889b-38b0-44ab-bc74-b00def41aaeb" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0C4FB6F3A7B34D13B591CF882756F17E Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:36Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYTBmODUwMzktZTljOC00MDE5LWJhN2UtMzQ0ZTJkMWJkYmRkIn0=\",\"startTime\":\"2024-10-21T06:09:31.0000000Z\",\"endTime\":\"2024-10-21T06:09:32.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "9b258cf5-2d2d-4ed1-840b-07a4c03e995c" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "53cbc54c-f956-4b5f-85f8-cc094a8744da" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "53cbc54c-f956-4b5f-85f8-cc094a8744da" ], + "x-ms-correlation-request-id": [ "53cbc54c-f956-4b5f-85f8-cc094a8744da" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060937Z:53cbc54c-f956-4b5f-85f8-cc094a8744da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 75C82AA326AF4D95B2A0B92CD23E7709 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:36Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"95a2260e-acba-4c1f-9aea-574180f17464\"},\"etag\":\"\\\"2c00346b-0000-0800-0000-6715f01b0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a\",\"name\":\"psdnsresolverpolicyforlinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:31.060822Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:31.060822Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknameafa9789a\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "277" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "08c1edd1-7eda-4b4f-afa4-5d9ababc1185" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9?api-version=2023-07-01-preview\u0026t=638650877784193412\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0Nk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OOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=wc9ALOvptraLOVREWSW21Cmauzm77DCQfQyZbAeR1NRQ5-wA9vHuG9UM7ZvIUOLIA2lUjLBEWI3hTIafmM7_ZHshFqQdDA1kwokmbW8cMN85qrqDIzMQ5Cx6H_ZXvsNrisq4XqfkAJxmKpl-Ov1O0TXGVDhEwVPySMWs-G9kN7Ovg3E71Eu0R0KhxTPbspNEEq_0Vb5cx0dUXOFcK6ij_qeUdqL-m4_gkCv7_aoDIFI5ubP4EQ8TgPY01BvaUfTw5MRQidEZsMw5ZM95Xup7lsRHu_paGuIZPo-2oJmQ5cLz3gFn7W7PVDBRg_y0J1u73AevuggVlra4cFaVfMvSlQ\u0026h=7DOSD6ZgeKNi7pDzOMlGb-2JQgQjOMDIx1zq12Tewzs" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "08c1edd1-7eda-4b4f-afa4-5d9ababc1185" ], + "x-ms-correlation-request-id": [ "08c1edd1-7eda-4b4f-afa4-5d9ababc1185" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060938Z:08c1edd1-7eda-4b4f-afa4-5d9ababc1185" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 96E460DD1E7A4DED97C92D3FCD46C1DE Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:37Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "835" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknameafa9789a\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2c001e6c-0000-0800-0000-6715f0220000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a\",\"name\":\"psdnsresolverpolicylinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:38.2637948Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:38.2637948Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9?api-version=2023-07-01-preview\u0026t=638650877784193412\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQ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VNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=wc9ALOvptraLOVREWSW21Cmauzm77DCQfQyZbAeR1NRQ5-wA9vHuG9UM7ZvIUOLIA2lUjLBEWI3hTIafmM7_ZHshFqQdDA1kwokmbW8cMN85qrqDIzMQ5Cx6H_ZXvsNrisq4XqfkAJxmKpl-Ov1O0TXGVDhEwVPySMWs-G9kN7Ovg3E71Eu0R0KhxTPbspNEEq_0Vb5cx0dUXOFcK6ij_qeUdqL-m4_gkCv7_aoDIFI5ubP4EQ8TgPY01BvaUfTw5MRQidEZsMw5ZM95Xup7lsRHu_paGuIZPo-2oJmQ5cLz3gFn7W7PVDBRg_y0J1u73AevuggVlra4cFaVfMvSlQ\u0026h=7DOSD6ZgeKNi7pDzOMlGb-2JQgQjOMDIx1zq12Tewzs+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9?api-version=2023-07-01-preview\u0026t=638650877784193412\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMD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4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=wc9ALOvptraLOVREWSW21Cmauzm77DCQfQyZbAeR1NRQ5-wA9vHuG9UM7ZvIUOLIA2lUjLBEWI3hTIafmM7_ZHshFqQdDA1kwokmbW8cMN85qrqDIzMQ5Cx6H_ZXvsNrisq4XqfkAJxmKpl-Ov1O0TXGVDhEwVPySMWs-G9kN7Ovg3E71Eu0R0KhxTPbspNEEq_0Vb5cx0dUXOFcK6ij_qeUdqL-m4_gkCv7_aoDIFI5ubP4EQ8TgPY01BvaUfTw5MRQidEZsMw5ZM95Xup7lsRHu_paGuIZPo-2oJmQ5cLz3gFn7W7PVDBRg_y0J1u73AevuggVlra4cFaVfMvSlQ\u0026h=7DOSD6ZgeKNi7pDzOMlGb-2JQgQjOMDIx1zq12Tewzs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "6eb56caa-ae6c-4653-a962-9e21236eb66d" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "7be900e6-2254-4f80-91cb-63787d56c179" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "7be900e6-2254-4f80-91cb-63787d56c179" ], + "x-ms-correlation-request-id": [ "7be900e6-2254-4f80-91cb-63787d56c179" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060943Z:7be900e6-2254-4f80-91cb-63787d56c179" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 08B00BC46459458F8E4EBE31827B77A5 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:43Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjAzOTJjNWU5LTRiMTUtNDU1Yy1iZTg5LWJmZjQ3NjQ3MjE0OSJ9\",\"startTime\":\"2024-10-21T06:09:38.0000000Z\",\"endTime\":\"2024-10-21T06:09:40.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "6eb56caa-ae6c-4653-a962-9e21236eb66d" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "082d1ad6-65d9-4c24-9939-57c50894e1ce" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "082d1ad6-65d9-4c24-9939-57c50894e1ce" ], + "x-ms-correlation-request-id": [ "082d1ad6-65d9-4c24-9939-57c50894e1ce" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060944Z:082d1ad6-65d9-4c24-9939-57c50894e1ce" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 086F39E44DC542FF86670744E944ECD9 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:43Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "836" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknameafa9789a\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00556c-0000-0800-0000-6715f0230000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a\",\"name\":\"psdnsresolverpolicylinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:38.2637948Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:38.2637948Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Gets a virtual network link by name, expected virtual network link returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "84949bb8-c116-47ef-98e3-798bb7ed9265" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c76764f4-7051-4436-87c6-950279f64258" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c76764f4-7051-4436-87c6-950279f64258" ], + "x-ms-correlation-request-id": [ "c76764f4-7051-4436-87c6-950279f64258" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060944Z:c76764f4-7051-4436-87c6-950279f64258" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C8734445BF6E43F9B9FB931DBD58B050 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:44Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "836" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknameafa9789a\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00556c-0000-0800-0000-6715f0230000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknameafa9789a/virtualNetworkLinks/psdnsresolverpolicylinknameafa9789a\",\"name\":\"psdnsresolverpolicylinknameafa9789a\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:38.2637948Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:38.2637948Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "bdbe7e02-2a36-4d77-85e1-353a84a07be8" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBB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uI5Ah7atO58GZkZT99G39IQ_HOn_gy0pRcztBzJ8rDnKAn0pQzJ1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "bdbe7e02-2a36-4d77-85e1-353a84a07be8" ], + "x-ms-correlation-request-id": [ "bdbe7e02-2a36-4d77-85e1-353a84a07be8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060952Z:bdbe7e02-2a36-4d77-85e1-353a84a07be8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0BE99CDE886C4E38BA7A44552B5FF4DE Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:50Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"7401a2e5-0000-0800-0000-6715f02f0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa\",\"name\":\"psdnsresolverpolicyforlinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:51.8898705Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:51.8898705Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdF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1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjc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6DXnY2D3iAMotFuDbBjd2D233Aw6c_QMzvmB7TO3c6-_vwv2YdI_uI5Ah7atO58GZkZT99G39IQ_HOn_gy0pRcztBzJ8rDnKAn0pQzJ1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "d7a81ac5-a98a-42e7-85a4-f9c561ac7358" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c64512af-7c03-45cf-9321-7ab58ae312ea" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c64512af-7c03-45cf-9321-7ab58ae312ea" ], + "x-ms-correlation-request-id": [ "c64512af-7c03-45cf-9321-7ab58ae312ea" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060957Z:c64512af-7c03-45cf-9321-7ab58ae312ea" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7A69F88EF4824888A54FE816B9755C06 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:09:57Z" ], + "Date": [ "Mon, 21 Oct 2024 06:09:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "519" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=\",\"startTime\":\"2024-10-21T06:09:51.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAP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B-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=w1nc3cq2Wq5RFc_9i28Ru9_zvvzzkwjMvRGvQ0PkrykJeM_xIosRbuHxuMA1NZxl0izJXWHoLKFN6UtekJhXm3-ggJY6skbuyQ_SWKUKvzXgldyzj1f51CbrIioEsk5F5aB-sS2lslZLuNhMphbq7Ouaw4NHc1r7vnuEhTneXfWJxMKVmRhVlByELbUH4fZxqEDLcl0IfEAzUHQM2r441gs8bbrXyluosGffacmbinoX6DXnY2D3iAMotFuDbBjd2D233Aw6c_QMzvmB7TO3c6-_vwv2YdI_uI5Ah7atO58GZkZT99G39IQ_HOn_gy0pRcztBzJ8rDnKAn0pQzJ1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=?api-version=2023-07-01-preview\u0026t=638650877920929971\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJh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zoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=w1nc3cq2Wq5RFc_9i28Ru9_zvvzzkwjMvRGvQ0PkrykJeM_xIosRbuHxuMA1NZxl0izJXWHoLKFN6UtekJhXm3-ggJY6skbuyQ_SWKUKvzXgldyzj1f51CbrIioEsk5F5aB-sS2lslZLuNhMphbq7Ouaw4NHc1r7vnuEhTneXfWJxMKVmRhVlByELbUH4fZxqEDLcl0IfEAzUHQM2r441gs8bbrXyluosGffacmbinoX6DXnY2D3iAMotFuDbBjd2D233Aw6c_QMzvmB7TO3c6-_vwv2YdI_uI5Ah7atO58GZkZT99G39IQ_HOn_gy0pRcztBzJ8rDnKAn0pQzJ1DQ\u0026h=-_5Klhn3wAjnS40kbMQbkjGOFKRUSPyUJRFN_sCbuUQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "d7a81ac5-a98a-42e7-85a4-f9c561ac7358" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "d47f0448-a5d2-4765-b6eb-bab296f8e86e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "d47f0448-a5d2-4765-b6eb-bab296f8e86e" ], + "x-ms-correlation-request-id": [ "d47f0448-a5d2-4765-b6eb-bab296f8e86e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061027Z:d47f0448-a5d2-4765-b6eb-bab296f8e86e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 59ACBE64A5C74AC8B42D83DD9F793496 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:27Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDMwY2RmMWUtNzhhNy00MjVhLTg3YmMtNzZiZjE2ZmJjZDU1In0=\",\"startTime\":\"2024-10-21T06:09:51.0000000Z\",\"endTime\":\"2024-10-21T06:09:59.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "d7a81ac5-a98a-42e7-85a4-f9c561ac7358" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f4df72b5-380b-405b-85a1-4e80374861d1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f4df72b5-380b-405b-85a1-4e80374861d1" ], + "x-ms-correlation-request-id": [ "f4df72b5-380b-405b-85a1-4e80374861d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061028Z:f4df72b5-380b-405b-85a1-4e80374861d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6205B8B3431E469A992F4F296ECBFF61 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:27Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"26f6dac9-b390-4663-8243-eee1419dd1f0\"},\"etag\":\"\\\"2c00d36e-0000-0800-0000-6715f0370000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa\",\"name\":\"psdnsresolverpolicyforlinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:09:51.8898705Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:09:51.8898705Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "276" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "a3fff8b5-619a-4d9e-bf8e-6a4e4d848556" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9?api-version=2023-07-01-preview\u0026t=638650878304376814\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK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81mGlzhZc09Q\u0026s=Y2Hh49OpMZGaVU0UNObXhD0Qd_5K2gxnNEEp0_Pjh07IifuF1ecBgC4AN0DE1y9mCL_DbKhg_XfrkutBfxnX6p2igodgZqrIY-qZnULpFl-7fWOimRKEsi7Hu_-wfVUbIhZ9-OrDIDAnZizug2wbJ0SDfKuWblshqt5M6TtFYuhKFT5Ff9YGZeJ3CUHNgubD-_srYfTPUrR2T32oPUBL3mYfgcQId8pP9GiMxpzwYPVNmmGvRY0vyPjhg74V_cVa8boGHTE-7XxFCkSwyHI_N-LT0Hhoz_1RDuHe4KwHRjwxxW5JvpVhr9y3fDDObnedKuXPieQfBmYOn789cBvspQ\u0026h=zwmA_0ZsuIEZ7WL8z4m-3g8BJ4lwQ0-0Pw2nVcx3nNc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "a3fff8b5-619a-4d9e-bf8e-6a4e4d848556" ], + "x-ms-correlation-request-id": [ "a3fff8b5-619a-4d9e-bf8e-6a4e4d848556" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061030Z:a3fff8b5-619a-4d9e-bf8e-6a4e4d848556" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8213FEE2BC78427998613C048348CD74 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:28Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "831" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2c007e73-0000-0800-0000-6715f0560000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:10:30.1564232Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:10:30.1564232Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9?api-version=2023-07-01-preview\u0026t=638650878304376814\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFF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TVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Y2Hh49OpMZGaVU0UNObXhD0Qd_5K2gxnNEEp0_Pjh07IifuF1ecBgC4AN0DE1y9mCL_DbKhg_XfrkutBfxnX6p2igodgZqrIY-qZnULpFl-7fWOimRKEsi7Hu_-wfVUbIhZ9-OrDIDAnZizug2wbJ0SDfKuWblshqt5M6TtFYuhKFT5Ff9YGZeJ3CUHNgubD-_srYfTPUrR2T32oPUBL3mYfgcQId8pP9GiMxpzwYPVNmmGvRY0vyPjhg74V_cVa8boGHTE-7XxFCkSwyHI_N-LT0Hhoz_1RDuHe4KwHRjwxxW5JvpVhr9y3fDDObnedKuXPieQfBmYOn789cBvspQ\u0026h=zwmA_0ZsuIEZ7WL8z4m-3g8BJ4lwQ0-0Pw2nVcx3nNc+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9?api-version=2023-07-01-preview\u0026t=638650878304376814\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZ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ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=Y2Hh49OpMZGaVU0UNObXhD0Qd_5K2gxnNEEp0_Pjh07IifuF1ecBgC4AN0DE1y9mCL_DbKhg_XfrkutBfxnX6p2igodgZqrIY-qZnULpFl-7fWOimRKEsi7Hu_-wfVUbIhZ9-OrDIDAnZizug2wbJ0SDfKuWblshqt5M6TtFYuhKFT5Ff9YGZeJ3CUHNgubD-_srYfTPUrR2T32oPUBL3mYfgcQId8pP9GiMxpzwYPVNmmGvRY0vyPjhg74V_cVa8boGHTE-7XxFCkSwyHI_N-LT0Hhoz_1RDuHe4KwHRjwxxW5JvpVhr9y3fDDObnedKuXPieQfBmYOn789cBvspQ\u0026h=zwmA_0ZsuIEZ7WL8z4m-3g8BJ4lwQ0-0Pw2nVcx3nNc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "59edd2e8-4fb6-4c1f-8209-d8b06c442d57" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8ae39f96-44bf-4a0d-8203-7d477bf20d8e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8ae39f96-44bf-4a0d-8203-7d477bf20d8e" ], + "x-ms-correlation-request-id": [ "8ae39f96-44bf-4a0d-8203-7d477bf20d8e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061035Z:8ae39f96-44bf-4a0d-8203-7d477bf20d8e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E5A892E1A6974602B0E604F66E40D442 Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:35Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjkyNmE3NGE4LTI2ZjEtNDhiZS04MTFhLWM1OTQ4NjlkYjMyMSJ9\",\"startTime\":\"2024-10-21T06:10:30.0000000Z\",\"endTime\":\"2024-10-21T06:10:32.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "59edd2e8-4fb6-4c1f-8209-d8b06c442d57" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f3e44581-88bc-4eb8-8e42-bec5a67aaa81" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f3e44581-88bc-4eb8-8e42-bec5a67aaa81" ], + "x-ms-correlation-request-id": [ "f3e44581-88bc-4eb8-8e42-bec5a67aaa81" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061036Z:f3e44581-88bc-4eb8-8e42-bec5a67aaa81" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E600A51EEDA14197AEFD2AF758BE802E Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:36Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "832" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00c573-0000-0800-0000-6715f0580000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:10:30.1564232Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:10:30.1564232Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Get-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+List virtual network links, expected virtual network links returned+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "04b48ce4-4fcd-4f45-9650-3b9beb1858c1" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "fb156b4e-3f8a-45a0-bc59-c49e48325172" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-ratelimit-remaining-subscription-resource-entities-read": [ "59999" ], + "x-ms-request-id": [ "fb156b4e-3f8a-45a0-bc59-c49e48325172" ], + "x-ms-correlation-request-id": [ "fb156b4e-3f8a-45a0-bc59-c49e48325172" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T061037Z:fb156b4e-3f8a-45a0-bc59-c49e48325172" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E960D675B87D477D9DC9B1F178F6D41A Ref B: CO6AA3150219047 Ref C: 2024-10-21T06:10:36Z" ], + "Date": [ "Mon, 21 Oct 2024 06:10:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "844" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00c573-0000-0800-0000-6715f0580000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-get/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:10:30.1564232Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:10:30.1564232Z\",\"lastModifiedByType\":\"User\"}}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 new file mode 100644 index 000000000000..3c682cca2e2f --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Get-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 @@ -0,0 +1,69 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzDnsResolverPolicyVirtualNetworkLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzDnsResolverPolicyVirtualNetworkLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzDnsResolverPolicyVirtualNetworkLink' { + It 'Gets a virtual network link by name, expected virtual network link returned' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinknameafa9789a"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinknameafa9789a"; + $virtualNetworkName = "psvirtualnetworkforlinknameafa9789a"; + $resourceGroupName = "powershell-test-rg-debug-get"; + $location = "westus2"; + $subscriptionId = "91ab65d2-c73f-4768-89d0-b061815f258b"; + $virtualNetworkId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + + if ($TestMode -eq "Record") + { + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + } + + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $virtualNetworkId + + # ACT + $dnsResolverPolicyLink = Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolverPolicyLink | Should -Not -BeNullOrEmpty + } + + It 'List virtual network links, expected virtual network links returned' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinkname7sadjfa"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinkname7sadjfa"; + $virtualNetworkName = "psvirtualnetworkforlinkname7sadjfa"; + $resourceGroupName = "powershell-test-rg-debug-get"; + $location = "westus2"; + $subscriptionId = "91ab65d2-c73f-4768-89d0-b061815f258b"; + $virtualNetworkId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + + if ($TestMode -eq "Record") + { + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + } + + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $virtualNetworkId + + # ACT + $dnsResolverPolicyLinks = Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + $dnsResolverPolicyLinks.Count | Should -BeGreaterThan 0 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRuleset.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRuleset.Recording.json index 077275511044..38a97552c25c 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRuleset.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRuleset.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9\",\"startTime\":\"2022-02-16T04:56:36.0000000Z\",\"endTime\":\"2022-02-16T04:56:41.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImY0NWFmNGEyLWMwMzUtNDI5NC04ODVlLTIxMjZjMTY4NDkzMCJ9\",\"startTime\":\"2022-02-16T04:56:36.0000000Z\",\"endTime\":\"2022-02-16T04:56:41.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d1969e70-6d1e-4fb5-bb3d-14e6d23e642a\"},\"etag\":\"\\\"0000da38-0000-0200-0000-620c84090000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24\",\"name\":\"psdnsresolvername24\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T04:56:36.4342882Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T04:56:36.4342882Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d1969e70-6d1e-4fb5-bb3d-14e6d23e642a\"},\"etag\":\"\\\"0000da38-0000-0200-0000-620c84090000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24\",\"name\":\"psdnsresolvername24\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T04:56:36.4342882Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T04:56:36.4342882Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=\",\"startTime\":\"2022-02-16T04:56:43.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=\",\"startTime\":\"2022-02-16T04:56:43.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=\",\"startTime\":\"2022-02-16T04:56:43.0000000Z\",\"endTime\":\"2022-02-16T04:56:55.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiOGE0YjRhOWQtMTZmMy00NWM5LTk4ZDctZjRiMzkyYzNhMjgzIn0=\",\"startTime\":\"2022-02-16T04:56:43.0000000Z\",\"endTime\":\"2022-02-16T04:56:55.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f74246d8-3b98-4c81-9a86-a67b20888293\"},\"etag\":\"\\\"0000d07e-0000-0200-0000-620c84160000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24\",\"name\":\"psoutboundendpointname24\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T04:56:43.843929Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T04:56:43.843929Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f74246d8-3b98-4c81-9a86-a67b20888293\"},\"etag\":\"\\\"0000d07e-0000-0200-0000-620c84160000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24\",\"name\":\"psoutboundendpointname24\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T04:56:43.843929Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T04:56:43.843929Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9\",\"startTime\":\"2022-02-16T04:57:21.0000000Z\",\"endTime\":\"2022-02-16T04:57:24.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjBmNmUzYWRkLTMzMWQtNDUzYi1hYWEyLTBkOGFlZTdhZGY3MCJ9\",\"startTime\":\"2022-02-16T04:57:21.0000000Z\",\"endTime\":\"2022-02-16T04:57:24.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "New-AzDnsForwardingRuleset+[NoContext]+Create new DNS forwarding ruleset+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,7 +419,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e0c534aa-3744-49ba-8cc7-0a3d63c07a58\"},\"etag\":\"\\\"0000967a-0000-0200-0000-620c84340000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24\",\"name\":\"psdnsforwardingrulesetname24\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T04:57:21.6329154Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T04:57:21.6329154Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername24/outboundEndpoints/psoutboundendpointname24\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e0c534aa-3744-49ba-8cc7-0a3d63c07a58\"},\"etag\":\"\\\"0000967a-0000-0200-0000-620c84340000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname24\",\"name\":\"psdnsforwardingrulesetname24\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T04:57:21.6329154Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T04:57:21.6329154Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRulesetForwardingRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRulesetForwardingRule.Recording.json index dae099cae194..184d3a7afaa6 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRulesetForwardingRule.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRulesetForwardingRule.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9\",\"startTime\":\"2022-02-16T22:09:10.0000000Z\",\"endTime\":\"2022-02-16T22:09:11.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjgwNTI2ZmE3LTQ2ZDgtNDhlZS1hZjg2LWZmNWU2MWY0ZDljMCJ9\",\"startTime\":\"2022-02-16T22:09:10.0000000Z\",\"endTime\":\"2022-02-16T22:09:11.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"91584c43-c737-41b6-adc1-3161cbd9fb9b\"},\"etag\":\"\\\"030010c4-0000-0200-0000-620d76070000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39\",\"name\":\"psdnsresolvername39\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:10.3344312Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:10.3344312Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"91584c43-c737-41b6-adc1-3161cbd9fb9b\"},\"etag\":\"\\\"030010c4-0000-0200-0000-620d76070000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39\",\"name\":\"psdnsresolvername39\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:10.3344312Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:10.3344312Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=\",\"startTime\":\"2022-02-16T22:09:17.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=\",\"startTime\":\"2022-02-16T22:09:17.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=\",\"startTime\":\"2022-02-16T22:09:17.0000000Z\",\"endTime\":\"2022-02-16T22:09:26.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYzAxNjQ0ZjctNTM0YS00MjFlLWE0NzMtN2VkZDhkYTVhNTQ4In0=\",\"startTime\":\"2022-02-16T22:09:17.0000000Z\",\"endTime\":\"2022-02-16T22:09:26.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"6a254890-0744-47fd-b1ec-adc1c42b1aa1\"},\"etag\":\"\\\"02006d12-0000-0200-0000-620d76160000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39\",\"name\":\"psoutboundendpointname39\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:17.504895Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:17.504895Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"6a254890-0744-47fd-b1ec-adc1c42b1aa1\"},\"etag\":\"\\\"02006d12-0000-0200-0000-620d76160000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39\",\"name\":\"psoutboundendpointname39\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:17.504895Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:17.504895Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9\",\"startTime\":\"2022-02-16T22:09:55.0000000Z\",\"endTime\":\"2022-02-16T22:09:56.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImQ5Yzc5ODIwLWMyYjUtNDg5My05ZTQ2LTkyZmRhNzUwYzdjNCJ9\",\"startTime\":\"2022-02-16T22:09:55.0000000Z\",\"endTime\":\"2022-02-16T22:09:56.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,14 +419,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b106212b-febe-485d-b096-872857b076cc\"},\"etag\":\"\\\"01007fdd-0000-0200-0000-620d76340000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39\",\"name\":\"psdnsforwardingrulesetname39\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:55.1481205Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:55.1481205Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername39/outboundEndpoints/psoutboundendpointname39\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b106212b-febe-485d-b096-872857b076cc\"},\"etag\":\"\\\"01007fdd-0000-0200-0000-620d76340000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39\",\"name\":\"psdnsforwardingrulesetname39\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T22:09:55.1481205Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:09:55.1481205Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "New-AzDnsForwardingRulesetForwardingRule+[NoContext]+Create new forwarding rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39/forwardingRules/psdnsforwardingrulename39?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39/forwardingRules/psdnsforwardingrulename39?api-version=2023-07-01-preview", "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": { @@ -457,7 +457,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"domainName\":\"psdomainName39.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"04007a7c-0000-0200-0000-620d76390000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39/forwardingRules/psdnsforwardingrulename39\",\"name\":\"psdnsforwardingrulename39\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:10:01.4584561Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:10:01.4584561Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"domainName\":\"psdomainName39.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"04007a7c-0000-0200-0000-620d76390000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname39/forwardingRules/psdnsforwardingrulename39\",\"name\":\"psdnsforwardingrulename39\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-16T22:10:01.4584561Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T22:10:01.4584561Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json index 9b802e40dde5..a93dc620eb6a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9\",\"startTime\":\"2022-02-17T06:23:09.0000000Z\",\"endTime\":\"2022-02-17T06:23:11.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImIxZTAzM2VjLTIxMzEtNDJjMC1hNjkwLTJjZjMzZThiODE2ZiJ9\",\"startTime\":\"2022-02-17T06:23:09.0000000Z\",\"endTime\":\"2022-02-17T06:23:11.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7018da5c-f0f5-4f22-aef2-beafd5d3a769\"},\"etag\":\"\\\"0400bb35-0000-0200-0000-620de9cf0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43\",\"name\":\"psdnsresolvername43\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:23:09.0883469Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:23:09.0883469Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7018da5c-f0f5-4f22-aef2-beafd5d3a769\"},\"etag\":\"\\\"0400bb35-0000-0200-0000-620de9cf0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43\",\"name\":\"psdnsresolvername43\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:23:09.0883469Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:23:09.0883469Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=\",\"startTime\":\"2022-02-17T06:23:16.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=\",\"startTime\":\"2022-02-17T06:23:16.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=\",\"startTime\":\"2022-02-17T06:23:16.0000000Z\",\"endTime\":\"2022-02-17T06:23:23.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNzdkMDQxMWYtMjEzMi00N2IyLTg0NDAtYzc2ZTQ2OTAwZmY3In0=\",\"startTime\":\"2022-02-17T06:23:16.0000000Z\",\"endTime\":\"2022-02-17T06:23:23.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"26d80c27-c3f1-43f8-991d-a0ab505238ec\"},\"etag\":\"\\\"0200a05f-0000-0200-0000-620de9db0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43\",\"name\":\"psoutboundendpointname43\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T06:23:16.4349797Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:23:16.4349797Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"26d80c27-c3f1-43f8-991d-a0ab505238ec\"},\"etag\":\"\\\"0200a05f-0000-0200-0000-620de9db0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43\",\"name\":\"psoutboundendpointname43\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T06:23:16.4349797Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:23:16.4349797Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9\",\"startTime\":\"2022-02-17T06:23:54.0000000Z\",\"endTime\":\"2022-02-17T06:23:56.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjE0MmViNzVjLTNhM2UtNDU4Zi1iNDEyLTc3MmViNTAwYWJkOCJ9\",\"startTime\":\"2022-02-17T06:23:54.0000000Z\",\"endTime\":\"2022-02-17T06:23:56.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,15 +419,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7440d34b-f0fd-4561-9de6-398eaaa3fffc\"},\"etag\":\"\\\"02008b3f-0000-0200-0000-620de9fc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43\",\"name\":\"psdnsforwardingrulesetname43\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T06:23:54.1279586Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:23:54.1279586Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername43/outboundEndpoints/psoutboundendpointname43\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7440d34b-f0fd-4561-9de6-398eaaa3fffc\"},\"etag\":\"\\\"02008b3f-0000-0200-0000-620de9fc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43\",\"name\":\"psdnsforwardingrulesetname43\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T06:23:54.1279586Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:23:54.1279586Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2023-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+12": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -503,14 +503,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==\",\"startTime\":\"2022-02-17T06:24:00.0000000Z\",\"endTime\":\"2022-02-17T06:24:01.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIyNDhiN2Q0MC1lMjM0LTQyZGEtOTM5MS0xNmViNGRiZjcwNTcifQ==\",\"startTime\":\"2022-02-17T06:24:00.0000000Z\",\"endTime\":\"2022-02-17T06:24:01.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+13": { + "New-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Create new virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -546,7 +546,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"02008e3f-0000-0200-0000-620dea010000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43\",\"name\":\"psvirtualnetworklinkname43\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T06:24:00.305122Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:24:00.305122Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"02008e3f-0000-0200-0000-620dea010000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname43/virtualNetworkLinks/psvirtualnetworklinkname43\",\"name\":\"psvirtualnetworklinkname43\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T06:24:00.305122Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:24:00.305122Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Recording.json index 510f4fd76465..2dc488ec3cab 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -76,14 +76,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9\",\"startTime\":\"2021-03-05T21:24:09.0000000Z\",\"endTime\":\"2021-03-05T21:24:12.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUzOGM2Njg3LTkzMjUtNDk0NS04YjQ5LTQ0ZDhmNWI2MmRjNiJ9\",\"startTime\":\"2021-03-05T21:24:09.0000000Z\",\"endTime\":\"2021-03-05T21:24:12.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with new virtual network+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -118,15 +118,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0879evh\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c312a18e-a334-4e26-9bc3-d4cc82306a2a\"},\"etag\":\"\\\"01005e2c-0000-0800-0000-6042a17c0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg\",\"name\":\"psdnsresolvername0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolvers\"}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0879evh\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c312a18e-a334-4e26-9bc3-d4cc82306a2a\"},\"etag\":\"\\\"01005e2c-0000-0800-0000-6042a17c0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername0j0cdzg\",\"name\":\"psdnsresolvername0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolvers\"}", "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=2022-07-01+1": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a malformed virtual network ARM ID+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername1uerapj?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername1uerapj?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1dkijv7\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { }, @@ -157,15 +157,15 @@ "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"InternalServerError\",\"message\":\"Unparseable resource ID. virtualNetworkId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1dkijv7 (Parameter \u0027virtualNetworkId\u0027)\",\"target\":\"\",\"details\":{},\"innererror\":{\"message\":\"Unparseable resource ID. virtualNetworkId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1dkijv7 (Parameter \u0027virtualNetworkId\u0027)\",\"type\":\"System.ArgumentException\",\"stacktrace\":\" at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Contracts.Instantiation.VirtualNetworkIdentity..ctor(String virtualNetworkId) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Contracts.Instantiation\\\\VirtualNetworkIdentity.cs:line 57\\r\\n at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Web.Models.Mappers.DnsResolverMapper.ToBllModel(CsmDnsResolverPackageBody csmDnsResolver, DnsResolverIdentity dnsResolverIdentityBll) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Web\\\\Models\\\\Mappers\\\\DnsResolverMapper.cs:line 34\\r\\n at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Web.Controllers.ManagedResolverController.PutDnsResolver(String subscriptionId, String resourceGroupName, String dnsResolverName, CsmDnsResolverPackageBody dnsResolver, String apiVersion) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Web\\\\Controllers\\\\ManagedResolverController.cs:line 219\\r\\n at lambda_method262(Closure , Object )\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeActionMethodAsync\u003eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeNextActionFilterAsync\u003eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\\r\\n--- End of stack trace from previous location ---\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003cInvokeNextExceptionFilterAsync\u003eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\",\"innererror\":{}} }}", + "Content": "{\"error\":{\"code\":\"InternalServerError\",\"message\":\"Unparseable resource ID. virtualNetworkId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1dkijv7 (Parameter \u0027virtualNetworkId\u0027)\",\"target\":\"\",\"details\":{},\"innererror\":{\"message\":\"Unparseable resource ID. virtualNetworkId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1dkijv7 (Parameter \u0027virtualNetworkId\u0027)\",\"type\":\"System.ArgumentException\",\"stacktrace\":\" at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Contracts.Instantiation.VirtualNetworkIdentity..ctor(String virtualNetworkId) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Contracts.Instantiation\\\\VirtualNetworkIdentity.cs:line 57\\r\\n at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Web.Models.Mappers.DnsResolverMapper.ToBllModel(CsmDnsResolverPackageBody csmDnsResolver, DnsResolverIdentity dnsResolverIdentityBll) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Web\\\\Models\\\\Mappers\\\\DnsResolverMapper.cs:line 34\\r\\n at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Web.Controllers.ManagedResolverController.PutDnsResolver(String subscriptionId, String resourceGroupName, String dnsResolverName, CsmDnsResolverPackageBody dnsResolver, String apiVersion) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Web\\\\Controllers\\\\ManagedResolverController.cs:line 219\\r\\n at lambda_method262(Closure , Object )\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeActionMethodAsync\u003eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeNextActionFilterAsync\u003eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\\r\\n--- End of stack trace from previous location ---\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003cInvokeNextExceptionFilterAsync\u003eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\",\"innererror\":{}} }}", "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=2022-07-01+1": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2023-07-01-preview", + "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/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -238,14 +238,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9\",\"startTime\":\"2021-03-05T21:24:21.0000000Z\",\"endTime\":\"2021-03-05T21:24:26.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQxMzcwNzNiLWNkNWMtNDRmOC05YjM5LTI4YThiYTQ1ZTk5MSJ9\",\"startTime\":\"2021-03-05T21:24:21.0000000Z\",\"endTime\":\"2021-03-05T21:24:26.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a new virtual network+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -280,15 +280,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28oq6tl\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f177be25-1718-4694-ba54-b34c252b6cfa\"},\"etag\":\"\\\"0100632c-0000-0800-0000-6042a1890000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyd2epq\":\"valued2epq\",\"key41to6\":\"value41to6\",\"keyi53q9\":\"valuei53q9\"},\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x\",\"name\":\"psdnsresolvername2zpuk2x\",\"type\":\"Microsoft.Network/dnsResolvers\"}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28oq6tl\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f177be25-1718-4694-ba54-b34c252b6cfa\"},\"etag\":\"\\\"0100632c-0000-0800-0000-6042a1890000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyd2epq\":\"valued2epq\",\"key41to6\":\"value41to6\",\"keyi53q9\":\"valuei53q9\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername2zpuk2x\",\"name\":\"psdnsresolvername2zpuk2x\",\"type\":\"Microsoft.Network/dnsResolvers\"}", "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=2022-07-01+1": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMDQ5MmY0LTlkOTktNGEzZS04NjZhLThkN2NlOWZiNzZjNSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -361,14 +361,14 @@ "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"BadRequest\",\"message\":\"Virtual network does not exist in NRP - not continuing. virtualNetworkResourceId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershelldnsresolvertestrglocaltest/virtualNetworks/psvirtualnetworkname9aywbo511111\",\"target\":\"\",\"details\":{},\"innererror\":{\"message\":\"Virtual network does not exist in NRP - not continuing. virtualNetworkResourceId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershelldnsresolvertestrglocaltest/virtualNetworks/psvirtualnetworkname9aywbo511111\",\"type\":\"Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Contracts.ServiceExceptions.FrontendBadRequestServiceException\",\"stacktrace\":\" at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Operations.Services.AsyncOperationService.AsyncOperationService.GetAsyncOperationAsync(OperationIdentity operationIdentity) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Operations\\\\Services\\\\AsyncOperationService\\\\AsyncOperationService.cs:line 83\\r\\n at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Web.Controllers.ManagedResolverController.GetOperationStatusAsync(String subscriptionId, String resourceGroupName, String location, String encodedOperationIdentity, String apiVersion) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Web\\\\Controllers\\\\ManagedResolverController.cs:line 1012\\r\\n at lambda_method22(Closure , Object )\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeActionMethodAsync\u003eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeNextActionFilterAsync\u003eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeInnerFilterAsync\u003eg__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003cInvokeNextExceptionFilterAsync\u003eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\",\"innererror\":{}} }}", + "Content": "{\"error\":{\"code\":\"BadRequest\",\"message\":\"Virtual network does not exist in NRP - not continuing. virtualNetworkResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershelldnsresolvertestrglocaltest/virtualNetworks/psvirtualnetworkname9aywbo511111\",\"target\":\"\",\"details\":{},\"innererror\":{\"message\":\"Virtual network does not exist in NRP - not continuing. virtualNetworkResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershelldnsresolvertestrglocaltest/virtualNetworks/psvirtualnetworkname9aywbo511111\",\"type\":\"Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Contracts.ServiceExceptions.FrontendBadRequestServiceException\",\"stacktrace\":\" at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Operations.Services.AsyncOperationService.AsyncOperationService.GetAsyncOperationAsync(OperationIdentity operationIdentity) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Operations\\\\Services\\\\AsyncOperationService\\\\AsyncOperationService.cs:line 83\\r\\n at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Web.Controllers.ManagedResolverController.GetOperationStatusAsync(String subscriptionId, String resourceGroupName, String location, String encodedOperationIdentity, String apiVersion) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Web\\\\Controllers\\\\ManagedResolverController.cs:line 1012\\r\\n at lambda_method22(Closure , Object )\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeActionMethodAsync\u003eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeNextActionFilterAsync\u003eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeInnerFilterAsync\u003eg__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003cInvokeNextExceptionFilterAsync\u003eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\",\"innererror\":{}} }}", "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=2022-07-01+3": { + "New-AzDnsResolver+[NoContext]+Create DNS resolver with a non-existent virtual network+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername3142sgr?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -403,15 +403,15 @@ "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"DNS resolver not found in database. dnsResolverResourceId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/dnsResolvers/psdnsresolvername3142sgr\",\"target\":\"\",\"details\":{},\"innererror\":{\"message\":\"DNS resolver not found in database. dnsResolverResourceId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/dnsResolvers/psdnsresolvername3142sgr\",\"type\":\"Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Contracts.ServiceExceptions.FrontendNotFoundServiceException\",\"stacktrace\":\" at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Operations.Services.DnsResolverService.DnsResolverService.GetDnsResolverAsync(IDnsResolverIdentity dnsResolverIdentity) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Operations\\\\Services\\\\DnsResolverService\\\\DnsResolverService.cs:line 230\\r\\n at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Web.Controllers.ManagedResolverController.GetDnsResolver(String subscriptionId, String resourceGroupName, String dnsResolverName, String apiVersion) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Web\\\\Controllers\\\\ManagedResolverController.cs:line 246\\r\\n at lambda_method160(Closure , Object )\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeActionMethodAsync\u003eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeNextActionFilterAsync\u003eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeInnerFilterAsync\u003eg__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003cInvokeNextExceptionFilterAsync\u003eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\",\"innererror\":{}} }}", + "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"DNS resolver not found in database. dnsResolverResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/dnsResolvers/psdnsresolvername3142sgr\",\"target\":\"\",\"details\":{},\"innererror\":{\"message\":\"DNS resolver not found in database. dnsResolverResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/dnsResolvers/psdnsresolvername3142sgr\",\"type\":\"Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Contracts.ServiceExceptions.FrontendNotFoundServiceException\",\"stacktrace\":\" at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Operations.Services.DnsResolverService.DnsResolverService.GetDnsResolverAsync(IDnsResolverIdentity dnsResolverIdentity) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Operations\\\\Services\\\\DnsResolverService\\\\DnsResolverService.cs:line 230\\r\\n at Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Web.Controllers.ManagedResolverController.GetDnsResolver(String subscriptionId, String resourceGroupName, String dnsResolverName, String apiVersion) in C:\\\\source\\\\src\\\\Frontend\\\\Frontend.Web\\\\Controllers\\\\ManagedResolverController.cs:line 246\\r\\n at lambda_method160(Closure , Object )\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeActionMethodAsync\u003eg__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeNextActionFilterAsync\u003eg__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State\u0026 next, Scope\u0026 scope, Object\u0026 state, Boolean\u0026 isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.\u003cInvokeInnerFilterAsync\u003eg__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.\u003cInvokeNextExceptionFilterAsync\u003eg__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\",\"innererror\":{}} }}", "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=2022-07-01+1": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -484,14 +484,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9\",\"startTime\":\"2021-03-05T21:24:37.0000000Z\",\"endTime\":\"2021-03-05T21:24:39.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjA1YmU3NDJlLTdhNTQtNDliMi04YWU3LWMyNjhhODRiODIwYSJ9\",\"startTime\":\"2021-03-05T21:24:37.0000000Z\",\"endTime\":\"2021-03-05T21:24:39.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -526,15 +526,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4mox6wf\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72711fd6-2532-4d5e-9946-ee4d8ebb5d4b\"},\"etag\":\"\\\"0100682c-0000-0800-0000-6042a1970000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm\",\"name\":\"psdnsresolvername4c7glpm\",\"type\":\"Microsoft.Network/dnsResolvers\"}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4mox6wf\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72711fd6-2532-4d5e-9946-ee4d8ebb5d4b\"},\"etag\":\"\\\"0100682c-0000-0800-0000-6042a1970000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm\",\"name\":\"psdnsresolvername4c7glpm\",\"type\":\"Microsoft.Network/dnsResolvers\"}", "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=2022-07-01+4": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2023-07-01-preview", + "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/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -607,14 +607,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9\",\"startTime\":\"2021-03-05T21:24:44.0000000Z\",\"endTime\":\"2021-03-05T21:24:45.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjZmNGRkNGQzLWZmMWEtNGJkNC1iZjI0LWQzNGU1ZjFlMWRlYiJ9\",\"startTime\":\"2021-03-05T21:24:44.0000000Z\",\"endTime\":\"2021-03-05T21:24:45.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+6": { + "New-AzDnsResolver+[NoContext]+Update DNS Resolver with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -649,7 +649,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4mox6wf\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72711fd6-2532-4d5e-9946-ee4d8ebb5d4b\"},\"etag\":\"\\\"0100692c-0000-0800-0000-6042a19d0000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyk6lei\":\"valuek6lei\",\"keyylaxi\":\"valueylaxi\",\"keyujexh\":\"valueujexh\"},\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm\",\"name\":\"psdnsresolvername4c7glpm\",\"type\":\"Microsoft.Network/dnsResolvers\"}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4mox6wf\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72711fd6-2532-4d5e-9946-ee4d8ebb5d4b\"},\"etag\":\"\\\"0100692c-0000-0800-0000-6042a19d0000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyk6lei\":\"valuek6lei\",\"keyylaxi\":\"valueylaxi\",\"keyujexh\":\"valueujexh\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/dnsResolvers/psdnsresolvername4c7glpm\",\"name\":\"psdnsresolvername4c7glpm\",\"type\":\"Microsoft.Network/dnsResolvers\"}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Tests.ps1 index aec2e6f8f1b3..1425a8b756bb 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Tests.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolver.Tests.ps1 @@ -22,7 +22,7 @@ Describe 'New-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername0j0cdzg"; $resourceGroupName = "powershell-test-rg-debug"; - $virtualNetworkId = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0879evh"; + $virtualNetworkId = "/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0879evh"; $location = "westus2"; # ACT @@ -37,7 +37,7 @@ Describe 'New-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername1uerapj"; $resourceGroupName = "powershell-test-rg-debug"; - $malformedVirtualNetworkArmId = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1dkijv7"; + $malformedVirtualNetworkArmId = "/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1dkijv7"; $location = "westus2"; # ACT,ASSERT @@ -48,7 +48,7 @@ Describe 'New-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername2zpuk2x"; $resourceGroupName = "powershell-test-rg-debug"; - $virtualNetworkId = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28oq6tl"; + $virtualNetworkId = "/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28oq6tl"; $location = "westus2"; $tag = GetRandomHashtable -size 2 @@ -65,9 +65,9 @@ Describe 'New-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername3142sgr"; $resourceGroupName = "powershell-test-rg-debug"; - $virtualNetworkId = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28oq6tl"; + $virtualNetworkId = "/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28oq6tl"; $location = "westus2"; - $nonExistentVirtualNetwork = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9aywbo511111" + $nonExistentVirtualNetwork = "/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershelldnsresolvertestrglocaltest/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9aywbo511111" # ACT, ASSERT {New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $resourceGroupName -VirtualNetworkId $nonExistentVirtualNetwork -Location $location }| Should -Throw @@ -77,7 +77,7 @@ Describe 'New-AzDnsResolver' { # ARRANGE $dnsResolverName = "psdnsresolvername4c7glpm"; $resourceGroupName = "powershell-test-rg-debug"; - $virtualNetworkId = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4mox6wf"; + $virtualNetworkId = "/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4mox6wf"; $location = "westus2"; New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $resourceGroupName -VirtualNetworkId $virtualNetworkId -Location $location diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..b946012e352c --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDnsSecurityRule.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverDnsSecurityRule' { + It 'CreateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Recording.json new file mode 100644 index 000000000000..d916be8e963b --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Recording.json @@ -0,0 +1,383 @@ +{ + "New-AzDnsResolverDomainList+[NoContext]+Create DNS resolver domain list+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "53896dbb-f3c0-4606-8417-418fa0bf79e9" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9?api-version=2023-07-01-preview\u0026t=638648068720192995\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQY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XVcw2tveMIKlD1kiEjU-aV-lW2OWKjZo7-KiD8ahsosGD95hjBQkQYfrwEg\u0026h=JCPDm661GeU9LRKDOjW49XLHsg6BjnH8ewZKxNqOjeY" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "53896dbb-f3c0-4606-8417-418fa0bf79e9" ], + "x-ms-correlation-request-id": [ "53896dbb-f3c0-4606-8417-418fa0bf79e9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000752Z:53896dbb-f3c0-4606-8417-418fa0bf79e9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 70957DEC25074BA5A420254835E139EB Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:07:50Z" ], + "Date": [ "Fri, 18 Oct 2024 00:07:52 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "620" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"9200c1d2-0000-0800-0000-6711a6d70000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg\",\"name\":\"psdnsresolverdomainlistname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:07:51.8161719Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:07:51.8161719Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Create DNS resolver domain list+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9?api-version=2023-07-01-preview\u0026t=638648068720192995\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-h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frwEg\u0026h=JCPDm661GeU9LRKDOjW49XLHsg6BjnH8ewZKxNqOjeY+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9?api-version=2023-07-01-preview\u0026t=638648068720192995\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQ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GSlykitt6rNDJA0j4KlzrBlo9WgJDJp06Kpj4ji_33Ezbr4qF0XVcw2tveMIKlD1kiEjU-aV-lW2OWKjZo7-KiD8ahsosGD95hjBQkQYfrwEg\u0026h=JCPDm661GeU9LRKDOjW49XLHsg6BjnH8ewZKxNqOjeY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "90594cc2-006d-443b-b88f-fdd1f4346a66" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "29be592b-206d-4d64-8bef-88c2113d50dc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "29be592b-206d-4d64-8bef-88c2113d50dc" ], + "x-ms-correlation-request-id": [ "29be592b-206d-4d64-8bef-88c2113d50dc" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000757Z:29be592b-206d-4d64-8bef-88c2113d50dc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2ECEF61C7DDC4AAA9745C62D8E530F7B Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:07:57Z" ], + "Date": [ "Fri, 18 Oct 2024 00:07:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjQwZGM5Nzg3LWQ3MGItNDg2My1hMjIxLWYzZDNjZjZjNzcwOCJ9\",\"startTime\":\"2024-10-18T00:07:51.0000000Z\",\"endTime\":\"2024-10-18T00:07:55.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Create DNS resolver domain list+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "90594cc2-006d-443b-b88f-fdd1f4346a66" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f998b108-d64f-48dd-a45d-58e12b065bee" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f998b108-d64f-48dd-a45d-58e12b065bee" ], + "x-ms-correlation-request-id": [ "f998b108-d64f-48dd-a45d-58e12b065bee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000758Z:f998b108-d64f-48dd-a45d-58e12b065bee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 922CC49476C148B3B60D3E0B7FBAD76E Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:07:57Z" ], + "Date": [ "Fri, 18 Oct 2024 00:07:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "655" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8359781d-c812-4615-b784-d7daf5e90074\"},\"etag\":\"\\\"16009fad-0000-0800-0000-6711a6db0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname0j0cdzg\",\"name\":\"psdnsresolverdomainlistname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:07:51.8161719Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:07:51.8161719Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "aa5046de-f840-4921-bce3-8e20e045a3ee" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9?api-version=2023-07-01-preview\u0026t=638648068802570688\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQY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DAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=b5hQE27kR1vFIyukjaVqJ7QM8-d3BaZLLIwCF4AgMxuJ5foKy3GjBKI7Vq-9xjSelyIVN0LdJ-_QnLm-WbOKw-iZiqsdZv_4ygOxpFpbQNK8VSX57HwFyh9pyE2LtBfYtAFBTRpU3c4U83lf9PG0y8SpfI0Ol3mMzLpWEFoaSGpFbltec2hDdSA6nMKps5S2IJndgty_eQz-55XgkoEroVciSm3V9SVgJ7i9RiloP-o7xDoE_5oXxIQayXrKVCOrWmVw2dU-FLwEBwtQDgu19LkSh7WgePruXy3olCCiPp4KrDAd_hBEKc9BN8LjWs8tiJFUMRsU7zoNqcyU5gaF6Q\u0026h=l0XokkSntL13ezAhbvc82cMpIoBeumvvEynmVs792cw" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11998" ], + "x-ms-request-id": [ "aa5046de-f840-4921-bce3-8e20e045a3ee" ], + "x-ms-correlation-request-id": [ "aa5046de-f840-4921-bce3-8e20e045a3ee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000800Z:aa5046de-f840-4921-bce3-8e20e045a3ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F51FC6E3AC3C4FC1ACCDBC26F642AA92 Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:07:58Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "620" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"920003d5-0000-0800-0000-6711a6e00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:08:00.0070554Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:08:00.0070554Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9?api-version=2023-07-01-preview\u0026t=638648068802570688\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU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7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=b5hQE27kR1vFIyukjaVqJ7QM8-d3BaZLLIwCF4AgMxuJ5foKy3GjBKI7Vq-9xjSelyIVN0LdJ-_QnLm-WbOKw-iZiqsdZv_4ygOxpFpbQNK8VSX57HwFyh9pyE2LtBfYtAFBTRpU3c4U83lf9PG0y8SpfI0Ol3mMzLpWEFoaSGpFbltec2hDdSA6nMKps5S2IJndgty_eQz-55XgkoEroVciSm3V9SVgJ7i9RiloP-o7xDoE_5oXxIQayXrKVCOrWmVw2dU-FLwEBwtQDgu19LkSh7WgePruXy3olCCiPp4KrDAd_hBEKc9BN8LjWs8tiJFUMRsU7zoNqcyU5gaF6Q\u0026h=l0XokkSntL13ezAhbvc82cMpIoBeumvvEynmVs792cw+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9?api-version=2023-07-01-preview\u0026t=638648068802570688\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAz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HSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=b5hQE27kR1vFIyukjaVqJ7QM8-d3BaZLLIwCF4AgMxuJ5foKy3GjBKI7Vq-9xjSelyIVN0LdJ-_QnLm-WbOKw-iZiqsdZv_4ygOxpFpbQNK8VSX57HwFyh9pyE2LtBfYtAFBTRpU3c4U83lf9PG0y8SpfI0Ol3mMzLpWEFoaSGpFbltec2hDdSA6nMKps5S2IJndgty_eQz-55XgkoEroVciSm3V9SVgJ7i9RiloP-o7xDoE_5oXxIQayXrKVCOrWmVw2dU-FLwEBwtQDgu19LkSh7WgePruXy3olCCiPp4KrDAd_hBEKc9BN8LjWs8tiJFUMRsU7zoNqcyU5gaF6Q\u0026h=l0XokkSntL13ezAhbvc82cMpIoBeumvvEynmVs792cw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "752a758f-6c29-4ea7-9c58-504a308acb2e" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c3638dbd-90c0-4b80-bdcc-e0691fec6687" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c3638dbd-90c0-4b80-bdcc-e0691fec6687" ], + "x-ms-correlation-request-id": [ "c3638dbd-90c0-4b80-bdcc-e0691fec6687" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000805Z:c3638dbd-90c0-4b80-bdcc-e0691fec6687" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5CF44A810C384D1FA443C8E64CB8D470 Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:05Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjI5NjE4NGY2LTljODItNDcwNi1iOTg1LTA5NWZiNDI0MjlmYyJ9\",\"startTime\":\"2024-10-18T00:08:00.0000000Z\",\"endTime\":\"2024-10-18T00:08:00.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "752a758f-6c29-4ea7-9c58-504a308acb2e" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "eab46480-00c9-470a-bcd8-5df7062d46ee" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "eab46480-00c9-470a-bcd8-5df7062d46ee" ], + "x-ms-correlation-request-id": [ "eab46480-00c9-470a-bcd8-5df7062d46ee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000806Z:eab46480-00c9-470a-bcd8-5df7062d46ee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E99849BBDA5940A5B9E387C9773E1017 Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:05Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "655" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dc8bd407-41bb-4240-bcf0-947ad9f35793\"},\"etag\":\"\\\"1600c2ad-0000-0800-0000-6711a6e00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:08:00.0070554Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:08:00.0070554Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"keyuwad3\": \"valueuwad3\",\r\n \"keyxl9oj\": \"valuexl9oj\",\r\n \"keyhyr2q\": \"valuehyr2q\"\r\n },\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "216" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9?api-version=2023-07-01-preview\u0026t=638648068880436717\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wec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iYbKVPeCuCAWCL--eH75ZWQzb9WxUX2eQFbd79mslk3c3Z2w9w55a7VauAEannNJ0pPKDxz5KGXkyjl0aU0zfkXg3IsIJ0vBFdhWmZ7aeRpKpVZSmTnFSLrjfkjVlkgvNgrQnRKq3lkI0IqoSj3hVg56a-NRAhFMSniMDa-gUh12WFUAmh-OhbZ3XE9S6xJVGebXVSwdsMvdqXsnTkITLxRcT1UJxmambBLkqJBgFvg\u0026h=La0pHs36ZDnMcKwl7Xi7pMGK0ckHLr90Mm2MONfJgdQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1354206f-58dc-442a-afa2-40dae1656836" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9?api-version=2023-07-01-preview\u0026t=638648068880280514\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsS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MIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=VInw9HYCpYUcpjLaHPwEH4otMfFSny5UgMFM3zwR-XRl1GhRQ-KQjY0-aFfw17c0yUUoO8Ff2yYqRcmCOUN1UjUnT4sHUelgLg_PwIMXTefjkMCPXa8zT3XRovmk6Wi4lmOcQWBVId35G5ASaSLD0hqyx-9Y-Jz8ytofJN3uPDP60bx1SDJHj9bK08f-Hk1Am0MHsZMsaaAAKb05eyKIqVszMP1cktWg_x_TMlpBwIs88foSZ7hk0CuJwofRNo8PfllNuBqq7CFZPoJv1ZhMDc2u4vpMVzf4FKqlrt2vazWfXmIAmP4NtBIEZ8U4YjjgWN1LoGvlO8__KMC-fCiIng\u0026h=TF7558FzLLRRZA4vnmjcMTEaYMo7CoitEo5aKiAg8gA" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1354206f-58dc-442a-afa2-40dae1656836" ], + "x-ms-correlation-request-id": [ "1354206f-58dc-442a-afa2-40dae1656836" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000808Z:1354206f-58dc-442a-afa2-40dae1656836" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7585EF4433E84542A68CB39EF042FFAB Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:06Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "701" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"920024d7-0000-0800-0000-6711a6e70000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyuwad3\":\"valueuwad3\",\"keyxl9oj\":\"valuexl9oj\",\"keyhyr2q\":\"valuehyr2q\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:08:00.0070554Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:08:07.5593363Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9?api-version=2023-07-01-preview\u0026t=638648068880280514\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsX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Q6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=VInw9HYCpYUcpjLaHPwEH4otMfFSny5UgMFM3zwR-XRl1GhRQ-KQjY0-aFfw17c0yUUoO8Ff2yYqRcmCOUN1UjUnT4sHUelgLg_PwIMXTefjkMCPXa8zT3XRovmk6Wi4lmOcQWBVId35G5ASaSLD0hqyx-9Y-Jz8ytofJN3uPDP60bx1SDJHj9bK08f-Hk1Am0MHsZMsaaAAKb05eyKIqVszMP1cktWg_x_TMlpBwIs88foSZ7hk0CuJwofRNo8PfllNuBqq7CFZPoJv1ZhMDc2u4vpMVzf4FKqlrt2vazWfXmIAmP4NtBIEZ8U4YjjgWN1LoGvlO8__KMC-fCiIng\u0026h=TF7558FzLLRRZA4vnmjcMTEaYMo7CoitEo5aKiAg8gA+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9?api-version=2023-07-01-preview\u0026t=638648068880280514\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJ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_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=VInw9HYCpYUcpjLaHPwEH4otMfFSny5UgMFM3zwR-XRl1GhRQ-KQjY0-aFfw17c0yUUoO8Ff2yYqRcmCOUN1UjUnT4sHUelgLg_PwIMXTefjkMCPXa8zT3XRovmk6Wi4lmOcQWBVId35G5ASaSLD0hqyx-9Y-Jz8ytofJN3uPDP60bx1SDJHj9bK08f-Hk1Am0MHsZMsaaAAKb05eyKIqVszMP1cktWg_x_TMlpBwIs88foSZ7hk0CuJwofRNo8PfllNuBqq7CFZPoJv1ZhMDc2u4vpMVzf4FKqlrt2vazWfXmIAmP4NtBIEZ8U4YjjgWN1LoGvlO8__KMC-fCiIng\u0026h=TF7558FzLLRRZA4vnmjcMTEaYMo7CoitEo5aKiAg8gA", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "9e44676a-18ea-4ab9-89a4-73486a9d4230" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "7e2478fc-cfc6-4195-94ba-4c0560e7c114" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "7e2478fc-cfc6-4195-94ba-4c0560e7c114" ], + "x-ms-correlation-request-id": [ "7e2478fc-cfc6-4195-94ba-4c0560e7c114" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000813Z:7e2478fc-cfc6-4195-94ba-4c0560e7c114" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BEE9FAD48DB143E487A5E65F9CA7304E Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:13Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImYyYTk0MTk0LTYzYmUtNDUyMS05ZDNkLTBkYzRlZWZiMjc3MSJ9\",\"startTime\":\"2024-10-18T00:08:07.0000000Z\",\"endTime\":\"2024-10-18T00:08:10.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver domain list with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "9e44676a-18ea-4ab9-89a4-73486a9d4230" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b164bab0-de61-4d46-a482-f1b7f4206488" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b164bab0-de61-4d46-a482-f1b7f4206488" ], + "x-ms-correlation-request-id": [ "b164bab0-de61-4d46-a482-f1b7f4206488" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000814Z:b164bab0-de61-4d46-a482-f1b7f4206488" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 541FB5F647F24901A81897AB6F52F08F Ref B: CO6AA3150217037 Ref C: 2024-10-18T00:08:13Z" ], + "Date": [ "Fri, 18 Oct 2024 00:08:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "736" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"dc8bd407-41bb-4240-bcf0-947ad9f35793\"},\"etag\":\"\\\"160008ae-0000-0800-0000-6711a6ea0000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyuwad3\":\"valueuwad3\",\"keyxl9oj\":\"valuexl9oj\",\"keyhyr2q\":\"valuehyr2q\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname4c7glpm\",\"name\":\"psdnsresolverdomainlistname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-18T00:08:00.0070554Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:08:07.5593363Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Tests.ps1 new file mode 100644 index 000000000000..4878ff085da1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverDomainList.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverDomainList')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverDomainList.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverDomainList' { + It 'Create DNS resolver domain list' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname0j0cdzg"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + # ACT + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ASSERT + $domainList | Should -BeSuccessfullyCreated + } + + It 'Update DNS Resolver domain list with new tags.' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname4c7glpm"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $tag = GetRandomHashtable -size 2 + + # ACT + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") -Tag $tag + + # ASSERT + $domainList.ProvisioningState | Should -Be "Succeeded" + $domainList.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverInboundEndpoint.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverInboundEndpoint.Recording.json index 6fd0e80011ec..a7e62e6cb096 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverInboundEndpoint.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverInboundEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9\",\"startTime\":\"2022-02-15T22:13:37.0000000Z\",\"endTime\":\"2022-02-15T22:13:39.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjNlNWNiZTJjLTgxMzMtNDViZS04ODFjLTUwOWQ5OGVmOGI0MiJ9\",\"startTime\":\"2022-02-15T22:13:37.0000000Z\",\"endTime\":\"2022-02-15T22:13:39.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cda7f034-e989-4600-9940-e2addb71ee1b\"},\"etag\":\"\\\"1000aff9-0000-0200-0000-620c25920000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15\",\"name\":\"psdnsresolvername15\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-15T22:13:37.5391938Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-15T22:13:37.5391938Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"cda7f034-e989-4600-9940-e2addb71ee1b\"},\"etag\":\"\\\"1000aff9-0000-0200-0000-620c25920000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15\",\"name\":\"psdnsresolvername15\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-15T22:13:37.5391938Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-15T22:13:37.5391938Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"ipConfigurations\": [\r\n {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==\",\"startTime\":\"2022-02-15T22:13:45.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==\",\"startTime\":\"2022-02-15T22:13:45.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==\",\"startTime\":\"2022-02-15T22:13:45.0000000Z\",\"endTime\":\"2022-02-15T22:13:54.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI5YTczNzg0Yy0wNTllLTRjOTUtYmQ1MC0xNGUzZjZmY2I2ODMifQ==\",\"startTime\":\"2022-02-15T22:13:45.0000000Z\",\"endTime\":\"2022-02-15T22:13:54.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "New-AzDnsResolverInboundEndpoint+[NoContext]+Create new inbound endpoint with ip configurations only, expect inbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,7 +292,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"38bd3167-a130-4e9b-aa2f-03fe18d28f9c\"},\"etag\":\"\\\"1200aeec-0000-0200-0000-620c25a10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15\",\"name\":\"psinboundendpointname15\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-15T22:13:44.9752597Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-15T22:13:44.9752597Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"38bd3167-a130-4e9b-aa2f-03fe18d28f9c\"},\"etag\":\"\\\"1200aeec-0000-0200-0000-620c25a10000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername15/inboundEndpoints/psinboundendpointname15\",\"name\":\"psinboundendpointname15\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-15T22:13:44.9752597Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-15T22:13:44.9752597Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverOutboundEndpoint.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverOutboundEndpoint.Recording.json index cf4351616514..4cc1473bc1e1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverOutboundEndpoint.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverOutboundEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9\",\"startTime\":\"2022-02-16T02:01:40.0000000Z\",\"endTime\":\"2022-02-16T02:01:41.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImRiNzVhZDI0LWM4NjAtNDUxOC04NDNhLTc2MTllNDVjM2NlYiJ9\",\"startTime\":\"2022-02-16T02:01:40.0000000Z\",\"endTime\":\"2022-02-16T02:01:41.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a30567b4-f795-473a-9653-f7c7eee78740\"},\"etag\":\"\\\"00005b14-0000-0200-0000-620c5b050000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20\",\"name\":\"psdnsresolvername20\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:00:26.5590393Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:01:39.2757366Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a30567b4-f795-473a-9653-f7c7eee78740\"},\"etag\":\"\\\"00005b14-0000-0200-0000-620c5b050000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20\",\"name\":\"psdnsresolvername20\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:00:26.5590393Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:01:39.2757366Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=\",\"startTime\":\"2022-02-16T02:01:50.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=\",\"startTime\":\"2022-02-16T02:01:50.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=\",\"startTime\":\"2022-02-16T02:01:50.0000000Z\",\"endTime\":\"2022-02-16T02:01:57.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZmUzZDBiZDktYTNkZS00YjI2LTg3ODYtNmFlZTZjMjQxMTc3In0=\",\"startTime\":\"2022-02-16T02:01:50.0000000Z\",\"endTime\":\"2022-02-16T02:01:57.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "New-AzDnsResolverOutboundEndpoint+[NoContext]+Create new outbound endpoint with subnet, expect outbound endpoint created+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,7 +292,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1280b903-bf42-4df3-97a8-46ab7b8a4277\"},\"etag\":\"\\\"12006bfa-0000-0200-0000-620c5b140000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20\",\"name\":\"psoutboundendpointname20\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:01:50.1980984Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:01:50.1980984Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1280b903-bf42-4df3-97a8-46ab7b8a4277\"},\"etag\":\"\\\"12006bfa-0000-0200-0000-620c5b140000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername20/outboundEndpoints/psoutboundendpointname20\",\"name\":\"psoutboundendpointname20\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T02:01:50.1980984Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:01:50.1980984Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Recording.json new file mode 100644 index 000000000000..8ede4f509bac --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Recording.json @@ -0,0 +1,383 @@ +{ + "New-AzDnsResolverPolicy+[NoContext]+Create DNS resolver policy+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "73739c00-d05d-4906-a13b-6a9d08745e19" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/west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-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "73739c00-d05d-4906-a13b-6a9d08745e19" ], + "x-ms-correlation-request-id": [ "73739c00-d05d-4906-a13b-6a9d08745e19" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000909Z:73739c00-d05d-4906-a13b-6a9d08745e19" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8520CADEA794439785D7D893B8026E1A Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:07Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "564" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"920075e8-0000-0800-0000-6711a7250000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg\",\"name\":\"psdnsresolverpolicyname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:09.3100587Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:09.3100587Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Create DNS resolver policy+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjg1OW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QA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=2e6T1EpPh130g7fgKX6Z62IXu3m6K8rSb50aAEQTo7pK98UOJ9gIybbkA2B9k4VhejL7QomMu4o7k07d0TXgV5458TCdyK9CsKkC44UyrF_Mqe_iRHpaPDs0i6a5lytqxF9UrGGutfVAd0Ckp3YB8CVYJj9lbYJrS82F2nezt_UMfh31CFq9tMPZrXxKqloCd616TWrHFwvDWcLAe4As0BLQiju9ASZGJEBojGuszlwPW8-qEgj6aYKIbgL87b8qmwhE9WS3uYzUpZcpdY3g9Met6VUMj0CubStUii07wdII72ffKRrjy2e0kO2_rmfa5iaHVbHKo1yhSDqCuGS1Pg\u0026h=DOlOsEanUep9fKAdr8eDrcQAUOr5O7KQpeNTDBX90cg+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationSt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GdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=2e6T1EpPh130g7fgKX6Z62IXu3m6K8rSb50aAEQTo7pK98UOJ9gIybbkA2B9k4VhejL7QomMu4o7k07d0TXgV5458TCdyK9CsKkC44UyrF_Mqe_iRHpaPDs0i6a5lytqxF9UrGGutfVAd0Ckp3YB8CVYJj9lbYJrS82F2nezt_UMfh31CFq9tMPZrXxKqloCd616TWrHFwvDWcLAe4As0BLQiju9ASZGJEBojGuszlwPW8-qEgj6aYKIbgL87b8qmwhE9WS3uYzUpZcpdY3g9Met6VUMj0CubStUii07wdII72ffKRrjy2e0kO2_rmfa5iaHVbHKo1yhSDqCuGS1Pg\u0026h=DOlOsEanUep9fKAdr8eDrcQAUOr5O7KQpeNTDBX90cg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "94301a87-2e3d-40ca-b48f-4355d4abdf26" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "04d5ed7f-9a2e-47be-8ca3-f2411cab2f4c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "04d5ed7f-9a2e-47be-8ca3-f2411cab2f4c" ], + "x-ms-correlation-request-id": [ "04d5ed7f-9a2e-47be-8ca3-f2411cab2f4c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000915Z:04d5ed7f-9a2e-47be-8ca3-f2411cab2f4c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1535F4FD489E499488E1955E97E799FB Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:14Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjg1OWIzM2EtMmI4YS00OGVkLTkxN2MtYzk5NDQxZjQyYTczIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjg1OWIzM2EtMmI4YS00OGVkLTkxN2MtYzk5NDQxZjQyYTczIn0=\",\"startTime\":\"2024-10-18T00:09:09.0000000Z\",\"endTime\":\"2024-10-18T00:09:10.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Create DNS resolver policy+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "94301a87-2e3d-40ca-b48f-4355d4abdf26" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "75786274-c1a0-4495-a5ca-0c00ca8c9aee" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "75786274-c1a0-4495-a5ca-0c00ca8c9aee" ], + "x-ms-correlation-request-id": [ "75786274-c1a0-4495-a5ca-0c00ca8c9aee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000915Z:75786274-c1a0-4495-a5ca-0c00ca8c9aee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2483091FCFA8445ABC18FDEBB3F858BB Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:15Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "599" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"5c0f7dd1-2758-4b6a-bc38-bc3d4bc9ebb2\"},\"etag\":\"\\\"18006170-0000-0800-0000-6711a7260000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname0j0cdzg\",\"name\":\"psdnsresolverpolicyname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:09.3100587Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:09.3100587Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "35206003-41a0-4586-b73e-e92912df407e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=?api-version=2023-07-01-preview\u0026t=638648069571549589\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGg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O41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=cGWQE3yRfTq3c1ZRs1XOCO8GER_uzQNikdxzM_JK5zzRz0KS9_zqg8lsC3v95SBg_zcPfI3D1ySRO2d3xDi02mv_LssUhc_BT_5ksYE7QovAPfeATs0c5VpZaGazlK9GclZTQWv5Qn-CVghMnxJ7GLlvCyezngsSUIc6U2tjY6KxT9HhB6tRs71S-l_HJJGF50wjs7wWVNvBl6EYmigrPOPpztSCjPWDZfT43olyiDLj027KQpzTSSG8-I-10NaSbLi13ynCYc0YHM79PXye39UfgzkkxrSbeNLtf_0FmEyY01EQdvAN27H8tb82LIWlXv5_96NhhqKiGrphJLtTog\u0026h=WQ2IFqevkavKw1QpNw9KLfjFxHe-dVd1oagjaGFpP9o" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "35206003-41a0-4586-b73e-e92912df407e" ], + "x-ms-correlation-request-id": [ "35206003-41a0-4586-b73e-e92912df407e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000917Z:35206003-41a0-4586-b73e-e92912df407e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4E35D2CC0F464383A43F7688C1DCDE85 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:15Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "564" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"9200e6ea-0000-0800-0000-6711a72d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:16.9362072Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=?api-version=2023-07-01-preview\u0026t=638648069571549589\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy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ySRO2d3xDi02mv_LssUhc_BT_5ksYE7QovAPfeATs0c5VpZaGazlK9GclZTQWv5Qn-CVghMnxJ7GLlvCyezngsSUIc6U2tjY6KxT9HhB6tRs71S-l_HJJGF50wjs7wWVNvBl6EYmigrPOPpztSCjPWDZfT43olyiDLj027KQpzTSSG8-I-10NaSbLi13ynCYc0YHM79PXye39UfgzkkxrSbeNLtf_0FmEyY01EQdvAN27H8tb82LIWlXv5_96NhhqKiGrphJLtTog\u0026h=WQ2IFqevkavKw1QpNw9KLfjFxHe-dVd1oagjaGFpP9o+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=?api-version=2023-07-01-preview\u0026t=638648069571549589\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA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GER_uzQNikdxzM_JK5zzRz0KS9_zqg8lsC3v95SBg_zcPfI3D1ySRO2d3xDi02mv_LssUhc_BT_5ksYE7QovAPfeATs0c5VpZaGazlK9GclZTQWv5Qn-CVghMnxJ7GLlvCyezngsSUIc6U2tjY6KxT9HhB6tRs71S-l_HJJGF50wjs7wWVNvBl6EYmigrPOPpztSCjPWDZfT43olyiDLj027KQpzTSSG8-I-10NaSbLi13ynCYc0YHM79PXye39UfgzkkxrSbeNLtf_0FmEyY01EQdvAN27H8tb82LIWlXv5_96NhhqKiGrphJLtTog\u0026h=WQ2IFqevkavKw1QpNw9KLfjFxHe-dVd1oagjaGFpP9o", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "93e62597-f098-4fa6-9928-3254d74c926b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3a5e329f-a7da-4f27-b3fe-b44b6bed7059" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3a5e329f-a7da-4f27-b3fe-b44b6bed7059" ], + "x-ms-correlation-request-id": [ "3a5e329f-a7da-4f27-b3fe-b44b6bed7059" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000922Z:3a5e329f-a7da-4f27-b3fe-b44b6bed7059" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2193A34D511D439FA17CE28C64F868C2 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:22Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNWU0ZjkyZDAtMzA5My00ODlhLTk1NTYtZGU3MDA3MjY5ZjJkIn0=\",\"startTime\":\"2024-10-18T00:09:17.0000000Z\",\"endTime\":\"2024-10-18T00:09:20.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "93e62597-f098-4fa6-9928-3254d74c926b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c77616fd-360f-48d7-8891-2b7230493fdf" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c77616fd-360f-48d7-8891-2b7230493fdf" ], + "x-ms-correlation-request-id": [ "c77616fd-360f-48d7-8891-2b7230493fdf" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000922Z:c77616fd-360f-48d7-8891-2b7230493fdf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7DBD3B79C689488E8D46D3E3959DEB65 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:22Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "599" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"766e397a-a1e0-435e-9fb0-499b12820093\"},\"etag\":\"\\\"18006771-0000-0800-0000-6711a7300000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:16.9362072Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"keyfy57a\": \"valuefy57a\",\r\n \"keya4orj\": \"valuea4orj\",\r\n \"keywflrg\": \"valuewflrg\"\r\n },\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "140" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=?api-version=2023-07-01-preview\u0026t=638648069646631295\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQ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DQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=dIWddxmQUGpDA_yJvbXupiGQCciXVo5stRGrK9xuUB-yhzZpNah0fwKrADLFDjq-dBf1JkzLcMEUYg8WmUUeTUvUJhLuEdxfWhii_z9tR94eLHqMsE-PNtmqAQheNZR4N92-VeejV8vqi9FvaLFUFNcZFfCE-gr_KTH34K7dJTboMyIgw0XB5RiwEPhMNWQFw2TFrEQd4X1dHMgKJdiAN2g_fMilgXUxl5_MJdR2aLwrQLmvQvb4jsm8cqilstGPZVEKOggdp4cSckocr8JC7oDQwLNcoi5vuftOuUl9aHDVBFEF6AgX3NxYlxoIQdAAfQAQqqLuIZ0uwKbiEJvp3w\u0026h=_s_S1XtuMvBTq4DdrJDRGm8Rx0JcC74vEclQTr3iHyQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "def20961-00e7-4430-b2f8-d12f784167f8" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=?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tADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=eZrOF1e7DkCS3N15Vj6ESNHA49HPSl_W8KxtgY0mMFX7MbOVJasPvhDcxaBR-oj_CHicZh7doXvmDbF8UR7CbXFMtaUzPA3aTlPUCE6cwukEfvZAVabYAYWqWE-fMe41PCHA0JW0bBoce0lpqqNe-iGeSuQyIlJrWg57R7w4ptgllHtBU5XgE055AtXivNadpNVpmuUWHuoWk5tJBKYxeRzvo2O2xivZFzpoNy0Oeyx3_EWaAd19MeLbEbH5aG1TMHp18MfzPwjLCi3-SjlzKa_sPvjOFgfQtX91F2QB6tpbF7fOxn-EQxbMSaok-vqezivgP8OtI0XfriS-paxzag\u0026h=UZk16ITx3LVqCk1lMvrLqdKC_DUfl43GMjqmLI_z1rs" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "def20961-00e7-4430-b2f8-d12f784167f8" ], + "x-ms-correlation-request-id": [ "def20961-00e7-4430-b2f8-d12f784167f8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000924Z:def20961-00e7-4430-b2f8-d12f784167f8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D80120EF0DA745CC8DD8892ECFADBA89 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:23Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "645" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"920034ed-0000-0800-0000-6711a7340000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyfy57a\":\"valuefy57a\",\"keya4orj\":\"valuea4orj\",\"keywflrg\":\"valuewflrg\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:24.2256242Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=?api-version=2023-07-01-preview\u0026t=638648069646475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MAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=eZrOF1e7DkCS3N15Vj6ESNHA49HPSl_W8KxtgY0mMFX7MbOVJasPvhDcxaBR-oj_CHicZh7doXvmDbF8UR7CbXFMtaUzPA3aTlPUCE6cwukEfvZAVabYAYWqWE-fMe41PCHA0JW0bBoce0lpqqNe-iGeSuQyIlJrWg57R7w4ptgllHtBU5XgE055AtXivNadpNVpmuUWHuoWk5tJBKYxeRzvo2O2xivZFzpoNy0Oeyx3_EWaAd19MeLbEbH5aG1TMHp18MfzPwjLCi3-SjlzKa_sPvjOFgfQtX91F2QB6tpbF7fOxn-EQxbMSaok-vqezivgP8OtI0XfriS-paxzag\u0026h=UZk16ITx3LVqCk1lMvrLqdKC_DUfl43GMjqmLI_z1rs+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9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BBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=eZrOF1e7DkCS3N15Vj6ESNHA49HPSl_W8KxtgY0mMFX7MbOVJasPvhDcxaBR-oj_CHicZh7doXvmDbF8UR7CbXFMtaUzPA3aTlPUCE6cwukEfvZAVabYAYWqWE-fMe41PCHA0JW0bBoce0lpqqNe-iGeSuQyIlJrWg57R7w4ptgllHtBU5XgE055AtXivNadpNVpmuUWHuoWk5tJBKYxeRzvo2O2xivZFzpoNy0Oeyx3_EWaAd19MeLbEbH5aG1TMHp18MfzPwjLCi3-SjlzKa_sPvjOFgfQtX91F2QB6tpbF7fOxn-EQxbMSaok-vqezivgP8OtI0XfriS-paxzag\u0026h=UZk16ITx3LVqCk1lMvrLqdKC_DUfl43GMjqmLI_z1rs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "d8aa9060-0977-466a-8f60-079a4aa4ebd8" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "5f816b65-b183-45d9-9238-bd642ac3a4d0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "5f816b65-b183-45d9-9238-bd642ac3a4d0" ], + "x-ms-correlation-request-id": [ "5f816b65-b183-45d9-9238-bd642ac3a4d0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000930Z:5f816b65-b183-45d9-9238-bd642ac3a4d0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EA58D7D210E34B1C94D02F2500D750F3 Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:29Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmZiMzdiMWMtYjQxYy00MjNmLTk1Y2EtYWFkZTEyMmM1MDVhIn0=\",\"startTime\":\"2024-10-18T00:09:24.0000000Z\",\"endTime\":\"2024-10-18T00:09:25.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy with new tags.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "d8aa9060-0977-466a-8f60-079a4aa4ebd8" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a43b8aac-b93d-436d-911f-c4af95fd9d5d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a43b8aac-b93d-436d-911f-c4af95fd9d5d" ], + "x-ms-correlation-request-id": [ "a43b8aac-b93d-436d-911f-c4af95fd9d5d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241018T000930Z:a43b8aac-b93d-436d-911f-c4af95fd9d5d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1EE9B0B94B494C70A2832303BAE3102D Ref B: CO6AA3150218009 Ref C: 2024-10-18T00:09:30Z" ], + "Date": [ "Fri, 18 Oct 2024 00:09:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "680" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"766e397a-a1e0-435e-9fb0-499b12820093\"},\"etag\":\"\\\"1800ed71-0000-0800-0000-6711a7350000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyfy57a\":\"valuefy57a\",\"keya4orj\":\"valuea4orj\",\"keywflrg\":\"valuewflrg\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname4c7glpm\",\"name\":\"psdnsresolverpolicyname4c7glpm\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-18T00:09:16.9362072Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-18T00:09:24.2256242Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Tests.ps1 new file mode 100644 index 000000000000..e3e0f22000bf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicy.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverPolicy' { + It 'Create DNS resolver policy' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname0j0cdzg"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + # ACT + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ASSERT + $resolverPolicy | Should -BeSuccessfullyCreated + } + + It 'Update DNS Resolver Policy with new tags.' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname4c7glpm"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $tag = GetRandomHashtable -size 2 + + # ACT + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -Tag $tag + + # ASSERT + $resolverPolicy.ProvisioningState | Should -Be "Succeeded" + $resolverPolicy.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Recording.json new file mode 100644 index 000000000000..542557fd89c4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Recording.json @@ -0,0 +1,469 @@ +{ + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=?api-version=2023-07-01-preview\u0026t=638650837145975168\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ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PaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=KQ7LdyKkmKeFrkkpCbnAk792joRW8vXV9QT4xF93mmZEYJJhkK9NQXxQkyR0cJvWJ3KnbiygOUu8XlHcMop74Ka-gXQo-Eazw8BsSo1D08Hj1T9J42aNXsoIPFpbG3VjwqH86VZxs9_t688UPPZDSWp5fI2-3F-nubu9oiQt5BjDu8VEa__AVCe37mN5Gbb3gmKHqFCRhaItFhVuxn3NxyK86_hSbfzJ4NiOCqu_X9eZ8-VNkamLvyuCboVDa0lZdYVSr9j3gWFjLNh3ob47S8gJZcKgLMNgyC9Vi-Ds7Ty9OGXvij0wBdXulyCC5oTciQv5VoEgZhK1KL4GDtdj0w\u0026h=CsfTA1RW1b1_e0ivVWeBkum8dmT8y06DoasRqHja9KA" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "4abdd590-003c-40f1-8327-ab9283613ed3" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=?api-version=2023-07-01-preview\u0026t=638650837145975168\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYD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wDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=KwIemlUyPeTiKHWO1AcynJLTGbBMu0ZWIqFy53W5js5zQnVpiitanQzi8tjaCwPm7Z4h_w1NLKPSPYjcE4YmUrwhYJA_7-tZOv51OLjVgNJr0lQZ1LbJX2A8mlzRGYBjXjkcv49v2ke4Xr_GNaow4ZXs71bx03dIf4Qxxw6YA_qGR6Cs4KBI1IkrBw1RrOP2lIZUn2WBSe3JrxdIJwmSYlRx788EjeHVRhr9Jo4zqsFqinIlUboqtrWs2yqbbCdjTo9QMD9_YmvV0fXPntyzpNNIzzydxnAQyFDtXl8bud40QvEw-hhtwEZOe-esTpXjiP4NPHtvNsG-lyW1pwjoeQ\u0026h=XrNPBlFT7bbMsmSSDGAhMiDEAKPVPMOgiq1efz--EIM" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "4abdd590-003c-40f1-8327-ab9283613ed3" ], + "x-ms-correlation-request-id": [ "4abdd590-003c-40f1-8327-ab9283613ed3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050154Z:4abdd590-003c-40f1-8327-ab9283613ed3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 210440E380384937ACA021386530B876 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:01:54Z" ], + "Date": [ "Mon, 21 Oct 2024 05:01:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7001a14d-0000-0800-0000-6715e0420000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg\",\"name\":\"psdnsresolverpolicyforrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:40:50.1981654Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:01:54.4881449Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=?api-version=2023-07-01-preview\u0026t=638650837145975168\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIx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CU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=KwIemlUyPeTiKHWO1AcynJLTGbBMu0ZWIqFy53W5js5zQnVpiitanQzi8tjaCwPm7Z4h_w1NLKPSPYjcE4YmUrwhYJA_7-tZOv51OLjVgNJr0lQZ1LbJX2A8mlzRGYBjXjkcv49v2ke4Xr_GNaow4ZXs71bx03dIf4Qxxw6YA_qGR6Cs4KBI1IkrBw1RrOP2lIZUn2WBSe3JrxdIJwmSYlRx788EjeHVRhr9Jo4zqsFqinIlUboqtrWs2yqbbCdjTo9QMD9_YmvV0fXPntyzpNNIzzydxnAQyFDtXl8bud40QvEw-hhtwEZOe-esTpXjiP4NPHtvNsG-lyW1pwjoeQ\u0026h=XrNPBlFT7bbMsmSSDGAhMiDEAKPVPMOgiq1efz--EIM+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=?api-version=2023-07-01-preview\u0026t=638650837145975168\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLG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SUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=KwIemlUyPeTiKHWO1AcynJLTGbBMu0ZWIqFy53W5js5zQnVpiitanQzi8tjaCwPm7Z4h_w1NLKPSPYjcE4YmUrwhYJA_7-tZOv51OLjVgNJr0lQZ1LbJX2A8mlzRGYBjXjkcv49v2ke4Xr_GNaow4ZXs71bx03dIf4Qxxw6YA_qGR6Cs4KBI1IkrBw1RrOP2lIZUn2WBSe3JrxdIJwmSYlRx788EjeHVRhr9Jo4zqsFqinIlUboqtrWs2yqbbCdjTo9QMD9_YmvV0fXPntyzpNNIzzydxnAQyFDtXl8bud40QvEw-hhtwEZOe-esTpXjiP4NPHtvNsG-lyW1pwjoeQ\u0026h=XrNPBlFT7bbMsmSSDGAhMiDEAKPVPMOgiq1efz--EIM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "3530ed18-f404-464b-addf-f4cec9a7c7e4" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f2fa4aa3-55e0-47c6-8a53-ace05c049ef8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f2fa4aa3-55e0-47c6-8a53-ace05c049ef8" ], + "x-ms-correlation-request-id": [ "f2fa4aa3-55e0-47c6-8a53-ace05c049ef8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050159Z:f2fa4aa3-55e0-47c6-8a53-ace05c049ef8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7CBDE60305F54E519CDF46187AAD4187 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:01:59Z" ], + "Date": [ "Mon, 21 Oct 2024 05:01:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYzA2NmYzYmEtY2JlZi00ZGFjLTgzNmUtMGFkYTgzMGQ4NTZlIn0=\",\"startTime\":\"2024-10-21T05:01:54.0000000Z\",\"endTime\":\"2024-10-21T05:01:55.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "3530ed18-f404-464b-addf-f4cec9a7c7e4" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "27ca6af5-daf8-4044-b584-bef27087e260" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "27ca6af5-daf8-4044-b584-bef27087e260" ], + "x-ms-correlation-request-id": [ "27ca6af5-daf8-4044-b584-bef27087e260" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050200Z:27ca6af5-daf8-4044-b584-bef27087e260" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5F6E8137E62E41BB9E78D641D73863F1 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:00Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c15c8865-725e-4878-959d-db7f686de514\"},\"etag\":\"\\\"2a008863-0000-0800-0000-6715e0430000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg\",\"name\":\"psdnsresolverpolicyforrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:40:50.1981654Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:01:54.4881449Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9?api-version=2023-07-01-preview\u0026t=638650837209991235\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwC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bDhFeqtlL_kEeZvHgelgs33S7ClUQm9K1irUppB7e8Jd_pN6u__qGbHUmKAXg606PpMo4KeUTMZmAUkw\u0026h=3Ow2Ea1dOj1a9b0Af_MjA4sYPlK0SgDI-mvVFM_t7k0" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "10c36c06-90bb-4f3d-b4e6-397679878ee5" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9?api-version=2023-07-01-preview\u0026t=638650837209835015\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PB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hzwRNP0HNIloLRNkzBlY8NNx1IJJtYBA9TwkFQenpb_wHVG0SNpUNoibD0LWKvRHIqH6ft-8vEVU6o8urh46lP80X49HzHVytVtqghpWzOslTGAut0ZcL_iqnlpByXUHjXSUYSJCVSPnwOcQDCJmJnLij7oots4Ogig7swsd9EIeKsZY4du3niZr9mah3Rt8vW5BgfYtQpN0VnApr56o5icxJIj7DqqqNTyEGTVotrb4NY1JEKNy7Fw\u0026h=mEPI4bGLSRpJQjhZfwewUleiTUTGDI3U3AjV-25eEuc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "10c36c06-90bb-4f3d-b4e6-397679878ee5" ], + "x-ms-correlation-request-id": [ "10c36c06-90bb-4f3d-b4e6-397679878ee5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050201Z:10c36c06-90bb-4f3d-b4e6-397679878ee5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7628751924F34E20B528413011FDC4EF Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:00Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:00 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "634" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7001634f-0000-0800-0000-6715e0480000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\",\"name\":\"psdnsresolverdomainlistforrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:42:46.1152087Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:00.8430049Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9?api-version=2023-07-01-preview\u0026t=638650837209835015\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvA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G0SNpUNoibD0LWKvRHIqH6ft-8vEVU6o8urh46lP80X49HzHVytVtqghpWzOslTGAut0ZcL_iqnlpByXUHjXSUYSJCVSPnwOcQDCJmJnLij7oots4Ogig7swsd9EIeKsZY4du3niZr9mah3Rt8vW5BgfYtQpN0VnApr56o5icxJIj7DqqqNTyEGTVotrb4NY1JEKNy7Fw\u0026h=mEPI4bGLSRpJQjhZfwewUleiTUTGDI3U3AjV-25eEuc+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9?api-version=2023-07-01-preview\u0026t=638650837209835015\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJ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J6wV_85KgznI_NoSy_za1zpI5o6XTmFrWy5yLUiXvVmGKz2waRdixNoRNAhzwRNP0HNIloLRNkzBlY8NNx1IJJtYBA9TwkFQenpb_wHVG0SNpUNoibD0LWKvRHIqH6ft-8vEVU6o8urh46lP80X49HzHVytVtqghpWzOslTGAut0ZcL_iqnlpByXUHjXSUYSJCVSPnwOcQDCJmJnLij7oots4Ogig7swsd9EIeKsZY4du3niZr9mah3Rt8vW5BgfYtQpN0VnApr56o5icxJIj7DqqqNTyEGTVotrb4NY1JEKNy7Fw\u0026h=mEPI4bGLSRpJQjhZfwewUleiTUTGDI3U3AjV-25eEuc", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "c46fa9ee-36a2-4923-9ee9-b1afcd3918bf" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "5bf1dac2-50cd-4df0-85ad-75d0c135a1f5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "5bf1dac2-50cd-4df0-85ad-75d0c135a1f5" ], + "x-ms-correlation-request-id": [ "5bf1dac2-50cd-4df0-85ad-75d0c135a1f5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050206Z:5bf1dac2-50cd-4df0-85ad-75d0c135a1f5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0FF1B7EFE39A4F93A27C1455CEF000BB Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:06Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjkzOGUxZTRhLTU4Y2YtNGE0YS1hN2UxLTI3OTk2Nzk5MmY3NCJ9\",\"startTime\":\"2024-10-21T05:02:00.0000000Z\",\"endTime\":\"2024-10-21T05:02:05.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "c46fa9ee-36a2-4923-9ee9-b1afcd3918bf" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9e9c7011-6c23-4907-ac3b-86b8445344db" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9e9c7011-6c23-4907-ac3b-86b8445344db" ], + "x-ms-correlation-request-id": [ "9e9c7011-6c23-4907-ac3b-86b8445344db" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050206Z:9e9c7011-6c23-4907-ac3b-86b8445344db" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3B1EEBF6320A428288E774A82D311687 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:06Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "669" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"c0367c34-3ba5-4987-a3d7-8739a2a22ce5\"},\"etag\":\"\\\"3d00fc31-0000-0800-0000-6715e04d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\",\"name\":\"psdnsresolverdomainlistforrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:42:46.1152087Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:00.8430049Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "474" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHa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EKi9hQ-A28seU5nQpM5iHZbHeB4" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "465f9b66-5dbb-42b5-900f-bc7586952d03" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwE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oeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "465f9b66-5dbb-42b5-900f-bc7586952d03" ], + "x-ms-correlation-request-id": [ "465f9b66-5dbb-42b5-900f-bc7586952d03" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050207Z:465f9b66-5dbb-42b5-900f-bc7586952d03" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1710060D3AC84B3B8A377988A79A4660 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:06Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "984" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2a00d464-0000-0800-0000-6715e04f0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg\",\"name\":\"psdnssecurityrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T04:43:24.3626718Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:07.1971715Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0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Opb1EhTyYuHU48xsh8PMpcbWr0J0JM4i0XlXosyZ4spVVu1RH81YigJGPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHI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i-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=H6i8nVHVUNFTHfS5gRMDnajl6z1Opb1EhTyYuHU48xsh8PMpcbWr0J0JM4i0XlXosyZ4spVVu1RH81YigJGPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "53dea3d6-1b7d-4bd6-89f5-866541dec643" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "eb492cca-ea24-429f-94b4-ca172bc72a9b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "eb492cca-ea24-429f-94b4-ca172bc72a9b" ], + "x-ms-correlation-request-id": [ "eb492cca-ea24-429f-94b4-ca172bc72a9b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050212Z:eb492cca-ea24-429f-94b4-ca172bc72a9b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E9FCE43C019545B193A1A04261510AF1 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:12Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "511" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9\",\"startTime\":\"2024-10-21T05:02:07.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9?api-version=2023-07-01-preview\u0026t=638650837273690426\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLG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AGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=H6i8nVHVUNFTHfS5gRMDnajl6z1Opb1EhTyYuHU48xsh8PMpcbWr0J0JM4i0XlXosyZ4spVVu1RH81YigJGPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ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ADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=H6i8nVHVUNFTHfS5gRMDnajl6z1Opb1EhTyYuHU48xsh8PMpcbWr0J0JM4i0XlXosyZ4spVVu1RH81YigJGPunKktbHGkm7sKHoRY8OzhOUa3h4zyZg3knwhzAFtS5vhEYTR7xFmEvke9l0H7loBz9Uefw7dwbeL2eSNueNCJVW7Yjp-E-1TddvBnfVoU7shzn-A8m802OnskNUcoeRnMSAs083IufGqSciF4kwNDiNBdYc9GTKCyichxaUiu9H4kthAeI2spnYf_HN2qgHcwRh8uYzSonnVoKV82QKl5B3-hFKyWA38VEo5LMhKh8c5SS-zwd0yt9EVt8uB0qaaog\u0026h=88YZ2A0pKsMvVft8WW4wZ3FXNrclZmE8qsukflnmyvk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "53dea3d6-1b7d-4bd6-89f5-866541dec643" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "58539020-0631-405b-b033-b8fa7d0cfc17" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "58539020-0631-405b-b033-b8fa7d0cfc17" ], + "x-ms-correlation-request-id": [ "58539020-0631-405b-b033-b8fa7d0cfc17" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050242Z:58539020-0631-405b-b033-b8fa7d0cfc17" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EB3D94FAE5F2402FBDBE1BB0BE1A3B88 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:42Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "551" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6Ijc2MmI0ZWRkLTBlMDUtNGQ1Mi05ZmI3LTQ3NTI4YWQyYTFhOCJ9\",\"startTime\":\"2024-10-21T05:02:07.0000000Z\",\"endTime\":\"2024-10-21T05:02:15.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "53dea3d6-1b7d-4bd6-89f5-866541dec643" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "70baa53c-7759-4fd1-bf6a-21f64c6653e8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "70baa53c-7759-4fd1-bf6a-21f64c6653e8" ], + "x-ms-correlation-request-id": [ "70baa53c-7759-4fd1-bf6a-21f64c6653e8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050243Z:70baa53c-7759-4fd1-bf6a-21f64c6653e8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C081024F2D284752BE2C80D055886248 Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:42Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0600d9e7-0000-0800-0000-6715e0570000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg\",\"name\":\"psdnssecurityrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T04:43:24.3626718Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:07.1971715Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Create DNS security rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "3e098e33-c4a4-4679-affc-da2d8fff3098" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "574fbbd5-7b81-4f3d-a962-82e71e22aa1b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "574fbbd5-7b81-4f3d-a962-82e71e22aa1b" ], + "x-ms-correlation-request-id": [ "574fbbd5-7b81-4f3d-a962-82e71e22aa1b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T050244Z:574fbbd5-7b81-4f3d-a962-82e71e22aa1b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 54FE1779D5A246048EE13D3F1762412A Ref B: CO6AA3150220035 Ref C: 2024-10-21T05:02:43Z" ], + "Date": [ "Mon, 21 Oct 2024 05:02:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "985" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j0cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0600d9e7-0000-0800-0000-6715e0570000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j0cdzg/dnsSecurityRules/psdnssecurityrulename0j0cdzg\",\"name\":\"psdnssecurityrulename0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T04:43:24.3626718Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:02:07.1971715Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..60a1160e08bf --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 @@ -0,0 +1,34 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverPolicyDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverPolicyDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverPolicyDnsSecurityRule' { + It 'Create DNS security rule' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename0j0cdzg"; + $dnsSecurityRuleName = "psdnssecurityrulename0j0cdzg"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename0j0cdzg"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ASSERT + {Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName } | Should -Not -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Recording.json new file mode 100644 index 000000000000..7d54969691c4 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Recording.json @@ -0,0 +1,342 @@ +{ + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFlLTg0NGYtMTM0ZmMzNmI3MzQ5In0=?api-version=2023-07-01-preview\u0026t=638650871965908887\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR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BggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=SwB1I03CMmCbHErzwA1tOpbfqI9KcMux9Pc0inWAByHCw7Il7HmDEOFZIHULROjdZSy6MC7iBz3lDaC8FAC2JpmSxssh5NE8JUEZE_3RG3MtA8kVcxKFyZbVvPEY9DdXPPgFll3qGVzms5kRQCczH37A4tqRQuKyoE4dCahDP-D6hYQ30mcVIVNpCsPQ-8kWrvzBde8koPdszmwni8NFVwctv7XKVXKFfXtwNcgClAxnVew3WOpZ36cQhPR1vINqDhD9iz-RnqTuXq8S6GjUfs1gj5E0YJiTqwAedIqIiG8zoJy53m3nybxTvJ1AMiIGSzoBQQfHLo8G2DqOZaZaJQ\u0026h=lvgZptduuGIv0aJiFGBoDHsr87Ch7xQD2XMXYZ461Cs" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "a3947d0c-e47a-4f51-ae14-5869b85f8b50" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFl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AA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=xp7e7Uo5M-SlDhlJyQrosCxymX-PQKV6cEOYUxgFySVAGFITHK0YuGo9-fe1eENuSFfz8l5JgEnN-BoPwTiLJj_v8Cg2HUtf040fIhsUecO2WP9MKgbQmmHo1n3LaTdqs1Mbg7Wj20ZTC4AXmNX02BA07e1Cp5uQ4CFlHvWG7DJ8BR8Rd4whl9CdVR6xQo3n6C3lcePwpOVxLquqXRCkQsoYBgNFts9v0A4ogYzJKoSHAXbzvNuouNqGehHHneVrkhXaRh_7iQx3FlGdJoojleW_a0yQtXdZlDh9vJy_BJgBkctJQvtoD4kBwjAQo3d7-2VT1ibh2326fnnPJUim7Q\u0026h=8AkRVHD3dBeC5z9_-raNcIe77Wg5wsL4Rnj6LWt6pIw" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "a3947d0c-e47a-4f51-ae14-5869b85f8b50" ], + "x-ms-correlation-request-id": [ "a3947d0c-e47a-4f51-ae14-5869b85f8b50" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T055956Z:a3947d0c-e47a-4f51-ae14-5869b85f8b50" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4DD5A1D911204E6AB145F1FD4F8EA826 Ref B: CO6AA3150220021 Ref C: 2024-10-21T05:59:55Z" ], + "Date": [ "Mon, 21 Oct 2024 05:59:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "578" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"74014132-0000-0800-0000-6715eddc0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg\",\"name\":\"psdnsresolverpolicyforlinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:46:42.3924047Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:59:56.4034527Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFlLTg0NGYtMTM0ZmMzNmI3MzQ5In0=?api-version=2023-07-01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EAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=xp7e7Uo5M-SlDhlJyQrosCxymX-PQKV6cEOYUxgFySVAGFITHK0YuGo9-fe1eENuSFfz8l5JgEnN-BoPwTiLJj_v8Cg2HUtf040fIhsUecO2WP9MKgbQmmHo1n3LaTdqs1Mbg7Wj20ZTC4AXmNX02BA07e1Cp5uQ4CFlHvWG7DJ8BR8Rd4whl9CdVR6xQo3n6C3lcePwpOVxLquqXRCkQsoYBgNFts9v0A4ogYzJKoSHAXbzvNuouNqGehHHneVrkhXaRh_7iQx3FlGdJoojleW_a0yQtXdZlDh9vJy_BJgBkctJQvtoD4kBwjAQo3d7-2VT1ibh2326fnnPJUim7Q\u0026h=8AkRVHD3dBeC5z9_-raNcIe77Wg5wsL4Rnj6LWt6pIw+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VE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BmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=xp7e7Uo5M-SlDhlJyQrosCxymX-PQKV6cEOYUxgFySVAGFITHK0YuGo9-fe1eENuSFfz8l5JgEnN-BoPwTiLJj_v8Cg2HUtf040fIhsUecO2WP9MKgbQmmHo1n3LaTdqs1Mbg7Wj20ZTC4AXmNX02BA07e1Cp5uQ4CFlHvWG7DJ8BR8Rd4whl9CdVR6xQo3n6C3lcePwpOVxLquqXRCkQsoYBgNFts9v0A4ogYzJKoSHAXbzvNuouNqGehHHneVrkhXaRh_7iQx3FlGdJoojleW_a0yQtXdZlDh9vJy_BJgBkctJQvtoD4kBwjAQo3d7-2VT1ibh2326fnnPJUim7Q\u0026h=8AkRVHD3dBeC5z9_-raNcIe77Wg5wsL4Rnj6LWt6pIw", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "7b42a998-7f9b-4372-a974-87a7a29f41a8" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3f94ce1a-a631-4349-9f34-9ef98a2773da" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3f94ce1a-a631-4349-9f34-9ef98a2773da" ], + "x-ms-correlation-request-id": [ "3f94ce1a-a631-4349-9f34-9ef98a2773da" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060001Z:3f94ce1a-a631-4349-9f34-9ef98a2773da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0C4EB453BC6C4AC6995447EC2B68074C Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:01Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFlLTg0NGYtMTM0ZmMzNmI3MzQ5In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q0YWI2ZTAtMmZiNC00NDFlLTg0NGYtMTM0ZmMzNmI3MzQ5In0=\",\"startTime\":\"2024-10-21T05:59:56.0000000Z\",\"endTime\":\"2024-10-21T05:59:58.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "7b42a998-7f9b-4372-a974-87a7a29f41a8" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "16ec1954-a2b6-4c29-ae8c-5f34f3d40671" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "16ec1954-a2b6-4c29-ae8c-5f34f3d40671" ], + "x-ms-correlation-request-id": [ "16ec1954-a2b6-4c29-ae8c-5f34f3d40671" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060002Z:16ec1954-a2b6-4c29-ae8c-5f34f3d40671" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A6CC3C758D5645B7AA7F7E8E86B9A588 Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:02Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"8187eade-f120-4603-810f-62ee8d6bd3b4\"},\"etag\":\"\\\"2c006620-0000-0800-0000-6715edde0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg\",\"name\":\"psdnsresolverpolicyforlinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:46:42.3924047Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:59:56.4034527Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname0j0cdzg\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "276" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035175076\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIh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c8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=mWtVgrGQhbjgtmnWpShvVeE4drHNJcTKo_LjLXngjW7Bmam6MSr7CHQ3L0TcrVMJ7v4QAFzP6J74BNlBfzrDHxb77v_v0AHstYmFkdHTv5Jfl2VF9kUASZbXeEY1w51K4HR61ZiDciAYbDTex8C4BUg8FrHl5jaB-bv3_0XnywfwWyU5i37CdroRuHTdC62lzSg_Dxeuy_8obKRYXNTHCIwKj_8Fj_1riUu59lVS8XSFGfdwxGMZQopzPgSvTkSrMkPvv6uzSF4dGdBKAc1UmrrmtY6XeeTcGoR6F7UZ3pM_AVLLMYhRfOmy2TIXjDpW--hytGRQzyZf5Kvyh6HBCQ\u0026h=n3kANTP55kjjT3J5YW8JIdHvToAvpPbucG1FAGu33nU" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "ed8ff6c9-e4dc-423d-8298-43c3db735417" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjU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0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hc-nyBObOJ16hYYe_n8npayYKiw4NuhZUV6QdSKBaLgX2tP7vBOgE9JHNc-nJQ0BNlzDpui2egyhaQiYJYbrUeHVcuxB9qkvXSF1kOmH03TczXu8VlCQ7TjHUhmXdn2gMmgrdIuTdihgFov-pr27ka4DReMLPSiVE7wViEpxZPGBWXH4xdD2wghZPEm4VfIoHE6a5Crxn1f-m52p8q_DG6gCNtcUOBlaNic7A2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "ed8ff6c9-e4dc-423d-8298-43c3db735417" ], + "x-ms-correlation-request-id": [ "ed8ff6c9-e4dc-423d-8298-43c3db735417" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060003Z:ed8ff6c9-e4dc-423d-8298-43c3db735417" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D61333A847724352AD809D201CE6B1CF Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:02Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "831" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname0j0cdzg\"},\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2c00d720-0000-0800-0000-6715ede30000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg\",\"name\":\"psdnsresolverpolicylinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:55:11.8540023Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:00:03.3768747Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgY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MEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hc-nyBObOJ16hYYe_n8npayYKiw4NuhZUV6QdSKBaLgX2tP7vBOgE9JHNc-nJQ0BNlzDpui2egyhaQiYJYbrUeHVcuxB9qkvXSF1kOmH03TczXu8VlCQ7TjHUhmXdn2gMmgrdIuTdihgFov-pr27ka4DReMLPSiVE7wViEpxZPGBWXH4xdD2wghZPEm4VfIoHE6a5Crxn1f-m52p8q_DG6gCNtcUOBlaNic7A2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQs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IKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hc-nyBObOJ16hYYe_n8npayYKiw4NuhZUV6QdSKBaLgX2tP7vBOgE9JHNc-nJQ0BNlzDpui2egyhaQiYJYbrUeHVcuxB9qkvXSF1kOmH03TczXu8VlCQ7TjHUhmXdn2gMmgrdIuTdihgFov-pr27ka4DReMLPSiVE7wViEpxZPGBWXH4xdD2wghZPEm4VfIoHE6a5Crxn1f-m52p8q_DG6gCNtcUOBlaNic7A2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "f414b7e3-0dfe-4dda-a61a-a934fd3a79a9" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9f3c3a3e-bd91-44fa-9f35-574f0d706f37" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9f3c3a3e-bd91-44fa-9f35-574f0d706f37" ], + "x-ms-correlation-request-id": [ "9f3c3a3e-bd91-44fa-9f35-574f0d706f37" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060009Z:9f3c3a3e-bd91-44fa-9f35-574f0d706f37" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 415EFCC5B8324F32A9E50DE898EC3361 Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:08Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "527" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9\",\"startTime\":\"2024-10-21T06:00:03.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYI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UAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9?api-version=2023-07-01-preview\u0026t=638650872035018777\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1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2uZNxYe7AqYgPQkO3lsRzNA7I2kN-8DC2OJGpNeLPgD_EzBNZJ-PRhx6WcfndZDqDUAnYTTyVrs-aR8z0kFBqusziJVuIWPTXaw6sjxekdXW4HChQ\u0026h=nzrRKU8d9teefJBiq5LkcqSFcZE5HvEMpLKFbtjMtV0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "f414b7e3-0dfe-4dda-a61a-a934fd3a79a9" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "176a9f6b-1da3-4da3-8bdb-32556ad6fa14" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "498" ], + "x-ms-request-id": [ "176a9f6b-1da3-4da3-8bdb-32556ad6fa14" ], + "x-ms-correlation-request-id": [ "176a9f6b-1da3-4da3-8bdb-32556ad6fa14" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060039Z:176a9f6b-1da3-4da3-8bdb-32556ad6fa14" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8EF61A9EC38B404BAA66BE5D66E6926B Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:39Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImVmYTU0N2QxLTA3ZDgtNDkxZS1hN2RjLWM0MzIwMDVmN2NjNSJ9\",\"startTime\":\"2024-10-21T06:00:03.0000000Z\",\"endTime\":\"2024-10-21T06:00:09.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "f414b7e3-0dfe-4dda-a61a-a934fd3a79a9" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e850cde0-1d65-4e1c-a2e2-01394b993ddf" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e850cde0-1d65-4e1c-a2e2-01394b993ddf" ], + "x-ms-correlation-request-id": [ "e850cde0-1d65-4e1c-a2e2-01394b993ddf" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060040Z:e850cde0-1d65-4e1c-a2e2-01394b993ddf" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0CF345D5C8FF4EA4BFDC9FAD7483A1BB Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:39Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "832" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname0j0cdzg\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00ab21-0000-0800-0000-6715ede90000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg\",\"name\":\"psdnsresolverpolicylinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:55:11.8540023Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:00:03.3768747Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "New-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Creates a virtual network link to a DNS resolver policy.+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "2aa10426-5e58-4aa8-a48b-707874dbbc98" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f0623a4c-26b5-47d1-867c-3e2c97ebd7dd" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f0623a4c-26b5-47d1-867c-3e2c97ebd7dd" ], + "x-ms-correlation-request-id": [ "f0623a4c-26b5-47d1-867c-3e2c97ebd7dd" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060040Z:f0623a4c-26b5-47d1-867c-3e2c97ebd7dd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D43938FBE52A410CB5EF63AE691E37E3 Ref B: CO6AA3150220021 Ref C: 2024-10-21T06:00:40Z" ], + "Date": [ "Mon, 21 Oct 2024 06:00:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "832" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname0j0cdzg\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00ab21-0000-0800-0000-6715ede90000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-new/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname0j0cdzg/virtualNetworkLinks/psdnsresolverpolicylinkname0j0cdzg\",\"name\":\"psdnsresolverpolicylinkname0j0cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T05:55:11.8540023Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:00:03.3768747Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 new file mode 100644 index 000000000000..1b325418a689 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/New-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 @@ -0,0 +1,43 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzDnsResolverPolicyVirtualNetworkLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzDnsResolverPolicyVirtualNetworkLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzDnsResolverPolicyVirtualNetworkLink' { + It 'Creates a virtual network link to a DNS resolver policy.' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinkname0j0cdzg"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinkname0j0cdzg"; + $virtualNetworkName = "psvirtualnetworkforlinkname0j0cdzg"; + $resourceGroupName = "powershell-test-rg-debug-new"; + $location = "westus2"; + + $subscriptionId = "91ab65d2-c73f-4768-89d0-b061815f258b"; + $virtualNetworkId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + + if ($TestMode -eq "Record") + { + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + } + + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $virtualNetworkId + + # ASSERT + { Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Not -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRuleset.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRuleset.Recording.json index c14a3b850792..f9f7a39ee920 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRuleset.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRuleset.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9\",\"startTime\":\"2022-02-16T18:46:08.0000000Z\",\"endTime\":\"2022-02-16T18:46:10.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjBmMGFmNDQ4LTNlMzMtNDQ4MC1hMGZlLWJjNmE0MDU4NTk4YyJ9\",\"startTime\":\"2022-02-16T18:46:08.0000000Z\",\"endTime\":\"2022-02-16T18:46:10.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb16b315-adc4-4e5a-8539-e229a8416176\"},\"etag\":\"\\\"0300c877-0000-0200-0000-620d46720000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30\",\"name\":\"psdnsresolvername30\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:46:08.2055923Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:46:08.2055923Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb16b315-adc4-4e5a-8539-e229a8416176\"},\"etag\":\"\\\"0300c877-0000-0200-0000-620d46720000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30\",\"name\":\"psdnsresolvername30\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T18:46:08.2055923Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:46:08.2055923Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=\",\"startTime\":\"2022-02-16T18:46:15.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=\",\"startTime\":\"2022-02-16T18:46:15.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=\",\"startTime\":\"2022-02-16T18:46:15.0000000Z\",\"endTime\":\"2022-02-16T18:46:25.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYxODIwODQtZjJjOS00NjMwLWJhZjAtOGNjMTYwNzkzMGY4In0=\",\"startTime\":\"2022-02-16T18:46:15.0000000Z\",\"endTime\":\"2022-02-16T18:46:25.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"17c95997-9fe3-46c8-8880-48c76c301fed\"},\"etag\":\"\\\"02008c00-0000-0200-0000-620d46810000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30\",\"name\":\"psoutboundendpointname30\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T18:46:15.4188842Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:46:15.4188842Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"17c95997-9fe3-46c8-8880-48c76c301fed\"},\"etag\":\"\\\"02008c00-0000-0200-0000-620d46810000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30\",\"name\":\"psoutboundendpointname30\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-16T18:46:15.4188842Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:46:15.4188842Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9\",\"startTime\":\"2022-02-16T18:46:53.0000000Z\",\"endTime\":\"2022-02-16T18:46:55.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImZmMmJmZWNkLTgxN2EtNGI4OS1iZGNlLTlkNzQ5OGU4MGYxMCJ9\",\"startTime\":\"2022-02-16T18:46:53.0000000Z\",\"endTime\":\"2022-02-16T18:46:55.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,14 +419,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d41a8c5a-d284-4093-8cf5-811a02c24291\"},\"etag\":\"\\\"01004e7b-0000-0200-0000-620d469f0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30\",\"name\":\"psdnsforwardingrulesetname30\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:46:53.3998502Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:46:53.3998502Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername30/outboundEndpoints/psoutboundendpointname30\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d41a8c5a-d284-4093-8cf5-811a02c24291\"},\"etag\":\"\\\"01004e7b-0000-0200-0000-620d469f0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30\",\"name\":\"psdnsforwardingrulesetname30\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-16T18:46:53.3998502Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T18:46:53.3998502Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2023-07-01-preview", "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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+12": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -507,14 +507,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9\",\"startTime\":\"2022-02-16T18:47:00.0000000Z\",\"endTime\":\"2022-02-16T18:47:01.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9\",\"startTime\":\"2022-02-16T18:47:00.0000000Z\",\"endTime\":\"2022-02-16T18:47:01.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+13": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImRmMjVlMWY5LWZhZGEtNGQ4ZS1iMDY2LWIwZDA4NTdkYmFjYyJ9?api-version=2023-07-01-preview", "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=2022-07-01+14": { + "Remove-AzDnsForwardingRuleset+[NoContext]+Delete a DNS forwarding ruleset, expect DNS forwarding ruleset deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname30?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -592,7 +592,7 @@ "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"DNS forwarding ruleset not found in database. dnsForwardingRulesetResourceId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/dnsForwardingRulesets/psdnsforwardingrulesetname30\",\"target\":\"\",\"details\":{},\"innererror\":{} }}", + "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"DNS forwarding ruleset not found in database. dnsForwardingRulesetResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/dnsForwardingRulesets/psdnsforwardingrulesetname30\",\"target\":\"\",\"details\":{},\"innererror\":{} }}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRulesetForwardingRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRulesetForwardingRule.Recording.json index abd3eb391de2..a9d44fd99638 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRulesetForwardingRule.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRulesetForwardingRule.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9\",\"startTime\":\"2022-02-17T06:03:49.0000000Z\",\"endTime\":\"2022-02-17T06:03:50.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImVjMGE2ZGZkLWI1MmQtNDMyNy1iMjE4LTc4Y2ZlNTdkZGI5MSJ9\",\"startTime\":\"2022-02-17T06:03:49.0000000Z\",\"endTime\":\"2022-02-17T06:03:50.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f1860481-a100-4af8-ad57-79afb7d6bdbf\"},\"etag\":\"\\\"04004830-0000-0200-0000-620de5460000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42\",\"name\":\"psdnsresolvername42\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:03:49.2357036Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:03:49.2357036Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f1860481-a100-4af8-ad57-79afb7d6bdbf\"},\"etag\":\"\\\"04004830-0000-0200-0000-620de5460000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42\",\"name\":\"psdnsresolvername42\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:03:49.2357036Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:03:49.2357036Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=\",\"startTime\":\"2022-02-17T06:03:56.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=\",\"startTime\":\"2022-02-17T06:03:56.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=\",\"startTime\":\"2022-02-17T06:03:56.0000000Z\",\"endTime\":\"2022-02-17T06:04:05.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiM2FkMzRkYWYtYzU4MS00MTZlLWFlYTYtMjhiMzY5NjFjYzU0In0=\",\"startTime\":\"2022-02-17T06:03:56.0000000Z\",\"endTime\":\"2022-02-17T06:04:05.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e435d781-4657-4282-ae78-60948164f51b\"},\"etag\":\"\\\"0200ee5c-0000-0200-0000-620de5550000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42\",\"name\":\"psoutboundendpointname42\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T06:03:56.8753544Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:03:56.8753544Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e435d781-4657-4282-ae78-60948164f51b\"},\"etag\":\"\\\"0200ee5c-0000-0200-0000-620de5550000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42\",\"name\":\"psoutboundendpointname42\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T06:03:56.8753544Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:03:56.8753544Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9\",\"startTime\":\"2022-02-17T06:04:34.0000000Z\",\"endTime\":\"2022-02-17T06:04:35.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImU4MWE4OTEyLWQ4NGItNGE3Mi1hNjcyLTYzNjYyZDM3NTgzOSJ9\",\"startTime\":\"2022-02-17T06:04:34.0000000Z\",\"endTime\":\"2022-02-17T06:04:35.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,14 +419,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b0d89018-a191-4d00-9508-a997c7809374\"},\"etag\":\"\\\"0200563c-0000-0200-0000-620de5730000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42\",\"name\":\"psdnsforwardingrulesetname42\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T06:04:34.4286264Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:04:34.4286264Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername42/outboundEndpoints/psoutboundendpointname42\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b0d89018-a191-4d00-9508-a997c7809374\"},\"etag\":\"\\\"0200563c-0000-0200-0000-620de5730000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42\",\"name\":\"psdnsforwardingrulesetname42\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T06:04:34.4286264Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:04:34.4286264Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2023-07-01-preview", "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": { @@ -457,14 +457,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"domainName\":\"psdomainName42.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400d1e0-0000-0200-0000-620de5780000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42\",\"name\":\"psdnsforwardingrulename42\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-17T06:04:40.8504936Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:04:40.8504936Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"domainName\":\"psdomainName42.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0400d1e0-0000-0200-0000-620de5780000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42\",\"name\":\"psdnsforwardingrulename42\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-17T06:04:40.8504936Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:04:40.8504936Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+12": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2023-07-01-preview", "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=2022-07-01+13": { + "Remove-AzDnsForwardingRulesetForwardingRule+[NoContext]+Delete a forwarding rule, expect forwarding rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -542,7 +542,7 @@ "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"Forwarding rule not found in database. forwardingRuleIdentity=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42\",\"target\":\"\",\"details\":{},\"innererror\":{} }}", + "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"Forwarding rule not found in database. forwardingRuleIdentity=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/dnsForwardingRulesets/psdnsforwardingrulesetname42/forwardingRules/psdnsforwardingrulename42\",\"target\":\"\",\"details\":{},\"innererror\":{} }}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json index 8a90e470a0f0..5243d08a0a02 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9\",\"startTime\":\"2022-02-17T06:35:09.0000000Z\",\"endTime\":\"2022-02-17T06:35:12.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijg0NjJiYjVjLWQ1YWEtNGNjMS1iMDA3LTdiY2ZjMTQxYmU3OSJ9\",\"startTime\":\"2022-02-17T06:35:09.0000000Z\",\"endTime\":\"2022-02-17T06:35:12.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e56ea734-f1fa-4a09-a004-bbe30bb6f44e\"},\"etag\":\"\\\"0400d538-0000-0200-0000-620deca00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44\",\"name\":\"psdnsresolvername44\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:35:09.6966547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:35:09.6966547Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e56ea734-f1fa-4a09-a004-bbe30bb6f44e\"},\"etag\":\"\\\"0400d538-0000-0200-0000-620deca00000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44\",\"name\":\"psdnsresolvername44\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T06:35:09.6966547Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:35:09.6966547Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=\",\"startTime\":\"2022-02-17T06:35:17.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=\",\"startTime\":\"2022-02-17T06:35:17.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=\",\"startTime\":\"2022-02-17T06:35:17.0000000Z\",\"endTime\":\"2022-02-17T06:35:24.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjc0MWY3ZDctZTRjZi00YmQwLTlmYjEtN2Q1NWU4MWRkMGVlIn0=\",\"startTime\":\"2022-02-17T06:35:17.0000000Z\",\"endTime\":\"2022-02-17T06:35:24.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"39e75074-edad-4c43-9f2c-6a6b96456628\"},\"etag\":\"\\\"02004060-0000-0200-0000-620decac0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44\",\"name\":\"psoutboundendpointname44\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T06:35:16.9911148Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:35:16.9911148Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"39e75074-edad-4c43-9f2c-6a6b96456628\"},\"etag\":\"\\\"02004060-0000-0200-0000-620decac0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44\",\"name\":\"psoutboundendpointname44\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T06:35:16.9911148Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:35:16.9911148Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9\",\"startTime\":\"2022-02-17T06:35:54.0000000Z\",\"endTime\":\"2022-02-17T06:35:56.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjQyMDY1MGYwLTI0YjQtNDQ4NS05Y2E4LWQwYTM4M2Q3YTlkMCJ9\",\"startTime\":\"2022-02-17T06:35:54.0000000Z\",\"endTime\":\"2022-02-17T06:35:56.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,15 +419,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bf8a7803-c839-4b9e-b18c-628ab6c8fb0a\"},\"etag\":\"\\\"02001a40-0000-0200-0000-620deccc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44\",\"name\":\"psdnsforwardingrulesetname44\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T06:35:54.4821362Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:35:54.4821362Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername44/outboundEndpoints/psoutboundendpointname44\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"bf8a7803-c839-4b9e-b18c-628ab6c8fb0a\"},\"etag\":\"\\\"02001a40-0000-0200-0000-620deccc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44\",\"name\":\"psdnsforwardingrulesetname44\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-17T06:35:54.4821362Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:35:54.4821362Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2023-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+12": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -503,14 +503,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==\",\"startTime\":\"2022-02-17T06:36:00.0000000Z\",\"endTime\":\"2022-02-17T06:36:02.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJkZTQyMGYzNS05YzgzLTQwMGQtYjZmNS01YTA3OGQ5ZTUwMWIifQ==\",\"startTime\":\"2022-02-17T06:36:00.0000000Z\",\"endTime\":\"2022-02-17T06:36:02.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+13": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -546,14 +546,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"02001d40-0000-0200-0000-620decd20000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44\",\"name\":\"psvirtualnetworklinkname44\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T06:36:00.6848265Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:36:00.6848265Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"02001d40-0000-0200-0000-620decd20000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44\",\"name\":\"psvirtualnetworklinkname44\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-17T06:36:00.6848265Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T06:36:00.6848265Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+14": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2023-07-01-preview", "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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+15": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -634,14 +634,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==\",\"startTime\":\"2022-02-17T06:36:06.0000000Z\",\"endTime\":\"2022-02-17T06:36:07.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==\",\"startTime\":\"2022-02-17T06:36:06.0000000Z\",\"endTime\":\"2022-02-17T06:36:07.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+16": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlVmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiIzYmQ2NDgxNy03YzgxLTQ3ZjgtYWRlNi1jMmJkNzEwZjc1YzUifQ==?api-version=2023-07-01-preview", "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=2022-07-01+17": { + "Remove-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Delete a virtual network link, expect virtual network link deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworkLinks/psvirtualnetworklinkname44?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -719,7 +719,7 @@ "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"Virtual network link not found in database. virtualNetworkLinkResourceId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworksLinks/psvirtualnetworklinkname44\",\"target\":\"\",\"details\":{},\"innererror\":{} }}", + "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"Virtual network link not found in database. virtualNetworkLinkResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/dnsForwardingRulesets/psdnsforwardingrulesetname44/virtualNetworksLinks/psvirtualnetworklinkname44\",\"target\":\"\",\"details\":{},\"innererror\":{} }}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolver.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolver.Recording.json index d8c74f428f0d..1d1915553df1 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolver.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolver.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9\",\"startTime\":\"2022-02-18T02:37:05.0000000Z\",\"endTime\":\"2022-02-18T02:37:07.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjkzOGI0ZWQ3LTQzYTMtNGY0Ni05MGU3LWI3MThjMGNmZDVkMiJ9\",\"startTime\":\"2022-02-18T02:37:05.0000000Z\",\"endTime\":\"2022-02-18T02:37:07.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,14 +122,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7598771e-bcde-4446-9469-9d24a9aec78a\"},\"etag\":\"\\\"05001942-0000-0200-0000-620f06530000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64\",\"name\":\"psdnsresolvername64\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:37:05.4790752Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:37:05.4790752Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"7598771e-bcde-4446-9469-9d24a9aec78a\"},\"etag\":\"\\\"05001942-0000-0200-0000-620f06530000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64\",\"name\":\"psdnsresolvername64\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:37:05.4790752Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:37:05.4790752Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2023-07-01-preview", "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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -210,14 +210,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9\",\"startTime\":\"2022-02-18T02:37:12.0000000Z\",\"endTime\":\"2022-02-18T02:37:12.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9\",\"startTime\":\"2022-02-18T02:37:12.0000000Z\",\"endTime\":\"2022-02-18T02:37:12.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+6": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiRGVsZXRlRG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQxNWYxYzM1LTY5ZjktNDRhZC1hMWI0LWE3MDYxYzAwZjliMiJ9?api-version=2023-07-01-preview", "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=2022-07-01+7": { + "Remove-AzDnsResolver+[NoContext]+Delete a DNS resolver by name, expected DNS resolver deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername64?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -295,7 +295,7 @@ "Content-Type": [ "text/plain; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"DNS resolver not found in database. dnsResolverResourceId=/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/dnsResolvers/psdnsresolvername64\",\"target\":\"\",\"details\":{},\"innererror\":{} }}", + "Content": "{\"error\":{\"code\":\"NotFound\",\"message\":\"DNS resolver not found in database. dnsResolverResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/dnsResolvers/psdnsresolvername64\",\"target\":\"\",\"details\":{},\"innererror\":{} }}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..52372e962d59 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDnsSecurityRule.Tests.ps1 @@ -0,0 +1,25 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverDnsSecurityRule' { + It 'Delete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Recording.json new file mode 100644 index 000000000000..42a85775696a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Recording.json @@ -0,0 +1,684 @@ +{ + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "b524d466-af84-4697-807a-4a4ece37dc5e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNiMThhOGJhLTI4N2ItNDc2NC1iNTg5LTI1MmZiOTIyZjNiNyJ9?api-version=2023-07-01-preview\u0026t=638650815644673312\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MwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=DRoFR3rVg0nNkZE6EwsOZTLWK-SxrpvlAAQrVG_Yng3MDt0RnC4qhrVZd6i4FHFMo7olsB2chvH51Ln6BQbkQXZNTCzIcy__KzaAB2kd5YU6_sU315mmd272JnqnWgXdJ26CJqett-N7_POsH5HcUndRpswnBQTcGlXi5U6YD6MyMsGpu2hm6kM9EQ117tWB71TjiHS1KZcchrw8V6LGmOQ72Q9DpKLuUZWgbkkqHN47ZJo75cyUeREa8UpLQBkX3YDoSXHLWZfgglikuquyCvd7Tyk-7_6YYcPHNLrQz19omgKd8w7hO_XsKV0lQWcJ388EyHfxq3yOCLWlBfKz-g\u0026h=PXus7Z4XnpYTkMWRd9VchxnnSgEsZpdAzAfACqJQpUs" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "b524d466-af84-4697-807a-4a4ece37dc5e" ], + "x-ms-correlation-request-id": [ "b524d466-af84-4697-807a-4a4ece37dc5e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042604Z:b524d466-af84-4697-807a-4a4ece37dc5e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FD606FF511A74E64BA7C72CE76362112 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:02Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6d0152f2-0000-0800-0000-6715d7dc0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65\",\"name\":\"psdnsresolverdomainlistname65\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:04.2016945Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:04.2016945Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNiMThhOGJhLTI4N2ItNDc2NC1iNTg5LTI1MmZiOTIyZjNiNyJ9?api-version=2023-07-01-preview\u0026t=638650815644673312\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQ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BgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=DRoFR3rVg0nNkZE6EwsOZTLWK-SxrpvlAAQrVG_Yng3MDt0RnC4qhrVZd6i4FHFMo7olsB2chvH51Ln6BQbkQXZNTCzIcy__KzaAB2kd5YU6_sU315mmd272JnqnWgXdJ26CJqett-N7_POsH5HcUndRpswnBQTcGlXi5U6YD6MyMsGpu2hm6kM9EQ117tWB71TjiHS1KZcchrw8V6LGmOQ72Q9DpKLuUZWgbkkqHN47ZJo75cyUeREa8UpLQBkX3YDoSXHLWZfgglikuquyCvd7Tyk-7_6YYcPHNLrQz19omgKd8w7hO_XsKV0lQWcJ388EyHfxq3yOCLWlBfKz-g\u0026h=PXus7Z4XnpYTkMWRd9VchxnnSgEsZpdAzAfACqJQpUs+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNiMThhOGJhLTI4N2ItN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QAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=DRoFR3rVg0nNkZE6EwsOZTLWK-SxrpvlAAQrVG_Yng3MDt0RnC4qhrVZd6i4FHFMo7olsB2chvH51Ln6BQbkQXZNTCzIcy__KzaAB2kd5YU6_sU315mmd272JnqnWgXdJ26CJqett-N7_POsH5HcUndRpswnBQTcGlXi5U6YD6MyMsGpu2hm6kM9EQ117tWB71TjiHS1KZcchrw8V6LGmOQ72Q9DpKLuUZWgbkkqHN47ZJo75cyUeREa8UpLQBkX3YDoSXHLWZfgglikuquyCvd7Tyk-7_6YYcPHNLrQz19omgKd8w7hO_XsKV0lQWcJ388EyHfxq3yOCLWlBfKz-g\u0026h=PXus7Z4XnpYTkMWRd9VchxnnSgEsZpdAzAfACqJQpUs", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "4eebf1b0-f93e-4429-9911-0221e5c34b8c" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "79fdeb8f-1d41-4b76-80b0-25eda3346133" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "79fdeb8f-1d41-4b76-80b0-25eda3346133" ], + "x-ms-correlation-request-id": [ "79fdeb8f-1d41-4b76-80b0-25eda3346133" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042609Z:79fdeb8f-1d41-4b76-80b0-25eda3346133" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C99AC72245DB409081DB2833156931D3 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:09Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNiMThhOGJhLTI4N2ItNDc2NC1iNTg5LTI1MmZiOTIyZjNiNyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNiMThhOGJhLTI4N2ItNDc2NC1iNTg5LTI1MmZiOTIyZjNiNyJ9\",\"startTime\":\"2024-10-21T04:26:04.0000000Z\",\"endTime\":\"2024-10-21T04:26:05.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "4eebf1b0-f93e-4429-9911-0221e5c34b8c" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a9e7e2ea-2d87-458a-ab89-b9eb2a898d68" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a9e7e2ea-2d87-458a-ab89-b9eb2a898d68" ], + "x-ms-correlation-request-id": [ "a9e7e2ea-2d87-458a-ab89-b9eb2a898d68" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042610Z:a9e7e2ea-2d87-458a-ab89-b9eb2a898d68" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CC1B9CC263444BF38725446291279855 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:10Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:09 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"ca3129de-7215-4008-b5e7-7b36d4b104b4\"},\"etag\":\"\\\"3c00b004-0000-0800-0000-6715d7dc0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65\",\"name\":\"psdnsresolverdomainlistname65\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:04.2016945Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:04.2016945Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "247ef157-86d1-497d-85b1-d07286095ec3" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717252393\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-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CPXoflc\u0026s=hRcfLiQqo5ZsxB45vBsWaIMJOSeq1nPhZTUv2dt91QDVSjg7dNtKXQaELe9sm4WfJqqsfzSpt17HNNKx02ByunORl7rpXy5WGPf_fbXWx86ZerNDdTg6X83WtxsXLiOsPofLJTrotCLvMsIuVh6qG6qA8NF_hrk9W5rkygIMOYuPEzyN6ypqsbuX1okBgmVofNJfDYhMfbcftVmKHCHtk0Oxrg2L6PCb8O2vIVfnp5KaV0xNokQLG1r3wFNYsk5XYxTZ03fWuSePYs3hlsis4FRhmoxB8IgWfzfO0_WEkA56UVXnA1Z4xkhuaAgl5xOEFfGnupD1VivyjX_B6Xk7mQ\u0026h=z7h87jpe74wgvPkThHdl67Maatb0Nyx11FQmH5KWRiY" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "b4296d59-cc40-4ce1-a803-74c224d9e9e0" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717096146\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZ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fSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=Kdwvnl9d1HekvIL0ipZdZrijI1CidZdY0h34nufDPtdyItbOV0H0zm5UD0SCRh1JgPOJ4WCWt5O6veVGPqAZP-A5n5ScvLNPGVkN5AXFiRGOUleLQTuq4TiRwy-9xMi4uCUqXTJPUwMgycWiVFhAcD0Mlno_MV5B3gB1GA6g6tVugIjH1nw97kx0XA4QZt_vdnOIdi03wPgAdnieTfVFLHggP4yBcpWjyVGnq1NBI-UuEa4TvKHxtQAUbD7OLQWiQPyhzyTACVy_wXhUxNasLCdRxVtBF7IrSZrhwa_Mq8uE0milbt4ig1iJVskyo8UlhMUlk6_I9jwH_N_SgL7MPg\u0026h=rDVItohLF84pBbz7vgBrYwa5Qlm485UqYWBotbXB2H4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "b4296d59-cc40-4ce1-a803-74c224d9e9e0" ], + "x-ms-correlation-request-id": [ "b4296d59-cc40-4ce1-a803-74c224d9e9e0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042611Z:b4296d59-cc40-4ce1-a803-74c224d9e9e0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B58108F51F1B4852BF941D527D43BA13 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:10Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:11 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717096146\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHi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pBbz7vgBrYwa5Qlm485UqYWBotbXB2H4+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717096146\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwE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rhwa_Mq8uE0milbt4ig1iJVskyo8UlhMUlk6_I9jwH_N_SgL7MPg\u0026h=rDVItohLF84pBbz7vgBrYwa5Qlm485UqYWBotbXB2H4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "247ef157-86d1-497d-85b1-d07286095ec3" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "24a60ff3-3552-4c4b-9f5e-ffa1369517bc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "24a60ff3-3552-4c4b-9f5e-ffa1369517bc" ], + "x-ms-correlation-request-id": [ "24a60ff3-3552-4c4b-9f5e-ffa1369517bc" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042617Z:24a60ff3-3552-4c4b-9f5e-ffa1369517bc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A07509CE23C9449C9F96B6A9DA3A4141 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:16Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9\",\"startTime\":\"2024-10-21T04:26:11.0000000Z\",\"endTime\":\"2024-10-21T04:26:14.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717252393\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQ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iLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hRcfLiQqo5ZsxB45vBsWaIMJOSeq1nPhZTUv2dt91QDVSjg7dNtKXQaELe9sm4WfJqqsfzSpt17HNNKx02ByunORl7rpXy5WGPf_fbXWx86ZerNDdTg6X83WtxsXLiOsPofLJTrotCLvMsIuVh6qG6qA8NF_hrk9W5rkygIMOYuPEzyN6ypqsbuX1okBgmVofNJfDYhMfbcftVmKHCHtk0Oxrg2L6PCb8O2vIVfnp5KaV0xNokQLG1r3wFNYsk5XYxTZ03fWuSePYs3hlsis4FRhmoxB8IgWfzfO0_WEkA56UVXnA1Z4xkhuaAgl5xOEFfGnupD1VivyjX_B6Xk7mQ\u0026h=z7h87jpe74wgvPkThHdl67Maatb0Nyx11FQmH5KWRiY+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImRkYTlhNjFkLTUxNzEtNDg2ZC1iYWVkLWIzODE5NTU1ZTdmNyJ9?api-version=2023-07-01-preview\u0026t=638650815717252393\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0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79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=hRcfLiQqo5ZsxB45vBsWaIMJOSeq1nPhZTUv2dt91QDVSjg7dNtKXQaELe9sm4WfJqqsfzSpt17HNNKx02ByunORl7rpXy5WGPf_fbXWx86ZerNDdTg6X83WtxsXLiOsPofLJTrotCLvMsIuVh6qG6qA8NF_hrk9W5rkygIMOYuPEzyN6ypqsbuX1okBgmVofNJfDYhMfbcftVmKHCHtk0Oxrg2L6PCb8O2vIVfnp5KaV0xNokQLG1r3wFNYsk5XYxTZ03fWuSePYs3hlsis4FRhmoxB8IgWfzfO0_WEkA56UVXnA1Z4xkhuaAgl5xOEFfGnupD1VivyjX_B6Xk7mQ\u0026h=z7h87jpe74wgvPkThHdl67Maatb0Nyx11FQmH5KWRiY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "247ef157-86d1-497d-85b1-d07286095ec3" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "d551e4ab-63e0-4b64-b026-8eaaf177005d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "d551e4ab-63e0-4b64-b026-8eaaf177005d" ], + "x-ms-correlation-request-id": [ "d551e4ab-63e0-4b64-b026-8eaaf177005d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042617Z:d551e4ab-63e0-4b64-b026-8eaaf177005d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6F5397A17664494D87FEBD37C25A9C06 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:17Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:17 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "62eb698c-009d-4315-8ae7-1857362ade7b" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "9fad1b71-dbc6-4913-8602-7f220d81bd0b" ], + "x-ms-correlation-request-id": [ "9fad1b71-dbc6-4913-8602-7f220d81bd0b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042618Z:9fad1b71-dbc6-4913-8602-7f220d81bd0b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B4FB5D3A33164B898F80E4B2A470928B Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:17Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "273" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname65\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "6472d0bb-9408-4653-83d1-415471f74f36" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9?api-version=2023-07-01-preview\u0026t=638650815796658801\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJ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Co9-ecEXJmfPIWkf1r3AzIAwzYZ-JhHA1n5-FcKPBQcZHkyHnRNa0pLDdS-83la0sXxwnXGTZC_6eZrm7Dm1kgFtOLTEeHOY995esLdOQh8e6l5fxG3UBjgSLFLC9a--S2jSBu3HrAHsj7ZQrq5p3vfcVr3m8IBzKt9Kg8sHyaZesTYYw5EG4gTgvN1tCd9lrpXNIxH3Tj2lUv8jThtxntdJONAKAaxeMzo-BIHQPvZEEm2AcZ16-0ckNq3eGm13LcLNPdF04xPFE2iRo8pcVZIMTwmiw24lF9x6kDpYuP1iz1GXjVMdTh70Kw\u0026h=g5ytzfeYIEOs98E5FZ_gTYmCpF8T7OoejOyIAAV0vcU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "6472d0bb-9408-4653-83d1-415471f74f36" ], + "x-ms-correlation-request-id": [ "6472d0bb-9408-4653-83d1-415471f74f36" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042619Z:6472d0bb-9408-4653-83d1-415471f74f36" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 78A4702D2E194A3F9F07FB3DF80B6583 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:18Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:19 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6d010ff6-0000-0800-0000-6715d7eb0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66\",\"name\":\"psdnsresolverdomainlistname66\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:19.3065056Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:19.3065056Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9?api-version=2023-07-01-preview\u0026t=638650815796658801\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKH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zYZ-JhHA1n5-FcKPBQcZHkyHnRNa0pLDdS-83la0sXxwnXGTZC_6eZrm7Dm1kgFtOLTEeHOY995esLdOQh8e6l5fxG3UBjgSLFLC9a--S2jSBu3HrAHsj7ZQrq5p3vfcVr3m8IBzKt9Kg8sHyaZesTYYw5EG4gTgvN1tCd9lrpXNIxH3Tj2lUv8jThtxntdJONAKAaxeMzo-BIHQPvZEEm2AcZ16-0ckNq3eGm13LcLNPdF04xPFE2iRo8pcVZIMTwmiw24lF9x6kDpYuP1iz1GXjVMdTh70Kw\u0026h=g5ytzfeYIEOs98E5FZ_gTYmCpF8T7OoejOyIAAV0vcU+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9?api-version=2023-07-01-preview\u0026t=638650815796658801\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFP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DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=TGgvgRdfs4DzKtBs0uQ2A1zA0-5eCo9-ecEXJmfPIWkf1r3AzIAwzYZ-JhHA1n5-FcKPBQcZHkyHnRNa0pLDdS-83la0sXxwnXGTZC_6eZrm7Dm1kgFtOLTEeHOY995esLdOQh8e6l5fxG3UBjgSLFLC9a--S2jSBu3HrAHsj7ZQrq5p3vfcVr3m8IBzKt9Kg8sHyaZesTYYw5EG4gTgvN1tCd9lrpXNIxH3Tj2lUv8jThtxntdJONAKAaxeMzo-BIHQPvZEEm2AcZ16-0ckNq3eGm13LcLNPdF04xPFE2iRo8pcVZIMTwmiw24lF9x6kDpYuP1iz1GXjVMdTh70Kw\u0026h=g5ytzfeYIEOs98E5FZ_gTYmCpF8T7OoejOyIAAV0vcU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "82bdf260-31a1-4b18-aef6-e8af86d8bc30" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "92d66489-27fa-4cfa-8677-462b3412c754" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "92d66489-27fa-4cfa-8677-462b3412c754" ], + "x-ms-correlation-request-id": [ "92d66489-27fa-4cfa-8677-462b3412c754" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042625Z:92d66489-27fa-4cfa-8677-462b3412c754" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5B22675BB650446A84C6D59C16B1A26F Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:24Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImY2NjEzZWY3LThmZjctNDY3ZC1hZDQ5LTNhNTcyODRmMzQ4MSJ9\",\"startTime\":\"2024-10-21T04:26:19.0000000Z\",\"endTime\":\"2024-10-21T04:26:24.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "82bdf260-31a1-4b18-aef6-e8af86d8bc30" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e285d001-8d34-40d5-b171-03371ccbc1e5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e285d001-8d34-40d5-b171-03371ccbc1e5" ], + "x-ms-correlation-request-id": [ "e285d001-8d34-40d5-b171-03371ccbc1e5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042625Z:e285d001-8d34-40d5-b171-03371ccbc1e5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 90057BF012FD475A9DD5ACEF7BF325EE Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:25Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d446fb76-a036-442f-8d09-2d1cdcfba935\"},\"etag\":\"\\\"3c005a07-0000-0800-0000-6715d7f00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66\",\"name\":\"psdnsresolverdomainlistname66\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:19.3065056Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:19.3065056Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "1a520f1a-2eb1-4444-8b84-69a1e85fd581" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "16bf22ef-7762-4ee1-b82b-0e986bb830d1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "16bf22ef-7762-4ee1-b82b-0e986bb830d1" ], + "x-ms-correlation-request-id": [ "16bf22ef-7762-4ee1-b82b-0e986bb830d1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042626Z:16bf22ef-7762-4ee1-b82b-0e986bb830d1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E3D4746E0D55401399004CB2841E312F Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:25Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d446fb76-a036-442f-8d09-2d1cdcfba935\"},\"etag\":\"\\\"3c005a07-0000-0800-0000-6715d7f00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66\",\"name\":\"psdnsresolverdomainlistname66\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:26:19.3065056Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:26:19.3065056Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "3dc14df4-6f92-4b46-97fb-e7cb64ca1b73" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879242747\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC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GnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=drke4_yaenWDD0Ox17bt8YVah4v9JJzn6-SDQ2VZyCjr2aMRn7SxcBjFKs9nX4FAmJB3XdkxqBPBd_IGyg1aDVQZAw2OjDhUTfp4acIaxrhlDHr2JxA3E07bXNytP0GmamisWngV-2LLcMB70eGhArTmoqe2UG74TKnYSiKPW3J8JUIC608I6qIX-p_V6Cp_v1-kvefbQ3PErcgLg9LWYqg1OHiVYI81-iVbK_UKerRPW0mH3y94_F5AjPupfA4pMu-2aJJYKWSt54iOwb-l4yVDeQAOPjqcoRYB8YOoKT-6-plcn4HJV5zDfdPFXeXQApWMY7Md_D8Z_O8PUbPRgg\u0026h=BhAQl-2zX6zWDVQ9a_uR9MEM5GqA83jR5P6pfuTJgNI" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "4304550e-0479-4c39-bace-a06d5479ecb9" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879086460\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMj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Z6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=mRFQoNzagtzcfZ606KNPdhC96VbkAOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "4304550e-0479-4c39-bace-a06d5479ecb9" ], + "x-ms-correlation-request-id": [ "4304550e-0479-4c39-bace-a06d5479ecb9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042627Z:4304550e-0479-4c39-bace-a06d5479ecb9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2F5D3B5330D14EED9001BDE96982B638 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:26Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:27 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879086460\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hK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5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879086460\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g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AOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "3dc14df4-6f92-4b46-97fb-e7cb64ca1b73" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "51089018-2c76-4a55-91ee-b5dd68086816" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "51089018-2c76-4a55-91ee-b5dd68086816" ], + "x-ms-correlation-request-id": [ "51089018-2c76-4a55-91ee-b5dd68086816" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042633Z:51089018-2c76-4a55-91ee-b5dd68086816" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5D4A5B6A5E7749BA9AE0C5306BB4F38E Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:26:33Z" ], + "Date": [ "Mon, 21 Oct 2024 04:26:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "530" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9\",\"startTime\":\"2024-10-21T04:26:27.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879086460\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwE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QcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=mRFQoNzagtzcfZ606KNPdhC96VbkAOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879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ADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=mRFQoNzagtzcfZ606KNPdhC96VbkAOcac_XITR0P5rEHK2EvvlQVE2QvbnllEIbECRq0uErhWOc5nr_STTg52oLbkB6wR6aDt0GsE5Zz9etiFZh4oy2QwF4d_T2Hw9M2L8WyYG5M6MY5imj3UMG81RGqCcA9TkX-o-s739uDHGW9sKAroDXgShNygF_M3wbafJF-rZGyPqIZP2ix-p-eN04Q1xVz_cv8O5cL3uwarAXGTJsU0ZEwmKdz2_1JwpuEENbJnX5voPfQBOACSRv8BDPsNQC6sThqFqzgt_Ly2T8Kq3z8FA4zJyT0Mi9Y3YxR47lzMilYqPU2muJMu9CYoA\u0026h=z64gQsc7KzLHrGO6Wk7cV4f8HfqCKrblSXJ-O1gWr0g", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "3dc14df4-6f92-4b46-97fb-e7cb64ca1b73" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e1f54361-172b-440e-96f4-2cbe2b010af8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e1f54361-172b-440e-96f4-2cbe2b010af8" ], + "x-ms-correlation-request-id": [ "e1f54361-172b-440e-96f4-2cbe2b010af8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042703Z:e1f54361-172b-440e-96f4-2cbe2b010af8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 14608C71E296497281BEF9219AFC8A58 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:27:03Z" ], + "Date": [ "Mon, 21 Oct 2024 04:27:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9\",\"startTime\":\"2024-10-21T04:26:27.0000000Z\",\"endTime\":\"2024-10-21T04:26:34.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879242747\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9h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LLcMB70eGhArTmoqe2UG74TKnYSiKPW3J8JUIC608I6qIX-p_V6Cp_v1-kvefbQ3PErcgLg9LWYqg1OHiVYI81-iVbK_UKerRPW0mH3y94_F5AjPupfA4pMu-2aJJYKWSt54iOwb-l4yVDeQAOPjqcoRYB8YOoKT-6-plcn4HJV5zDfdPFXeXQApWMY7Md_D8Z_O8PUbPRgg\u0026h=BhAQl-2zX6zWDVQ9a_uR9MEM5GqA83jR5P6pfuTJgNI+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImQwMmFhYWM3LTZhNzMtNGVlYS1hMjcwLWE3MDhhMjhlOTAzYSJ9?api-version=2023-07-01-preview\u0026t=638650815879242747\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0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zn6-SDQ2VZyCjr2aMRn7SxcBjFKs9nX4FAmJB3XdkxqBPBd_IGyg1aDVQZAw2OjDhUTfp4acIaxrhlDHr2JxA3E07bXNytP0GmamisWngV-2LLcMB70eGhArTmoqe2UG74TKnYSiKPW3J8JUIC608I6qIX-p_V6Cp_v1-kvefbQ3PErcgLg9LWYqg1OHiVYI81-iVbK_UKerRPW0mH3y94_F5AjPupfA4pMu-2aJJYKWSt54iOwb-l4yVDeQAOPjqcoRYB8YOoKT-6-plcn4HJV5zDfdPFXeXQApWMY7Md_D8Z_O8PUbPRgg\u0026h=BhAQl-2zX6zWDVQ9a_uR9MEM5GqA83jR5P6pfuTJgNI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "3dc14df4-6f92-4b46-97fb-e7cb64ca1b73" ], + "CommandName": [ "Remove-AzDnsResolverDomainList" ], + "FullCommandName": [ "Remove-AzDnsResolverDomainList_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e5b97819-ac6d-4790-816c-d68b25856dfd" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e5b97819-ac6d-4790-816c-d68b25856dfd" ], + "x-ms-correlation-request-id": [ "e5b97819-ac6d-4790-816c-d68b25856dfd" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042704Z:e5b97819-ac6d-4790-816c-d68b25856dfd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 22CA37CB9341485786D09FE33FFB4226 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:27:04Z" ], + "Date": [ "Mon, 21 Oct 2024 04:27:03 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverDomainList+[NoContext]+Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "0cc58510-e9ab-4623-b836-35bdd04a2961" ], + "CommandName": [ "Get-AzDnsResolverDomainList" ], + "FullCommandName": [ "Get-AzDnsResolverDomainList_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "4dde3b64-dbed-48e4-bf4e-d331290ad448" ], + "x-ms-correlation-request-id": [ "4dde3b64-dbed-48e4-bf4e-d331290ad448" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T042704Z:4dde3b64-dbed-48e4-bf4e-d331290ad448" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0301421617504C7D8F85459FEB2A8D80 Ref B: CO6AA3150219029 Ref C: 2024-10-21T04:27:04Z" ], + "Date": [ "Mon, 21 Oct 2024 04:27:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "273" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname66\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Tests.ps1 new file mode 100644 index 000000000000..dbc5188844e6 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverDomainList.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverDomainList')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverDomainList.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverDomainList' { + It 'Delete a DNS resolver domain list by name, expected DNS resolver domain list deleted' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname65"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + Remove-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName + + # ASSERT + {Get-AzDnsResolverDomainList -DnsResolverDomainListName $dnsResolverDomainListName -ResourceGroupName $resourceGroupName } | Should -Throw + } + + It 'Delete a DNS resolver domain list via identity, expected DNS resolver domain list deleted' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname66"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + # ACT + Get-AzDnsResolverDomainList -DnsResolverDomainListName $dnsResolverDomainListName -ResourceGroupName $resourceGroupName | Remove-AzDnsResolverDomainList + + # ASSERT + {Get-AzDnsResolverDomainList -DnsResolverDomainListName $dnsResolverDomainListName -ResourceGroupName $resourceGroupName } | Should -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverInboundEndpoint.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverInboundEndpoint.Recording.json index 085967f36503..ac6788dad745 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverInboundEndpoint.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverInboundEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9\",\"startTime\":\"2022-02-16T01:41:21.0000000Z\",\"endTime\":\"2022-02-16T01:41:24.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQwZWEyNTc2LWQ2NzAtNGUzMi1hY2M0LWQ0MjNiZTJhOWE0OCJ9\",\"startTime\":\"2022-02-16T01:41:21.0000000Z\",\"endTime\":\"2022-02-16T01:41:24.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,14 +122,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0e6f7b66-10c4-413d-acf9-040e9a907a17\"},\"etag\":\"\\\"0000ce10-0000-0200-0000-620c56440000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19\",\"name\":\"psdnsresolvername19\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:41:21.2110273Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:41:21.2110273Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0e6f7b66-10c4-413d-acf9-040e9a907a17\"},\"etag\":\"\\\"0000ce10-0000-0200-0000-620c56440000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19\",\"name\":\"psdnsresolvername19\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T01:41:21.2110273Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T01:41:21.2110273Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2023-07-01-preview", "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=2022-07-01+5": { + "Remove-AzDnsResolverInboundEndpoint+[NoContext]+Delete an Inbound Endpoint by name, expected Inbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername19/inboundEndpoints/psinboundendpointname19?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverOutboundEndpoint.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverOutboundEndpoint.Recording.json index 658777c352a3..04a33ef7be5e 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverOutboundEndpoint.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverOutboundEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9\",\"startTime\":\"2022-02-16T02:26:49.0000000Z\",\"endTime\":\"2022-02-16T02:26:53.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImQyNTQ4OTBkLTIyOWQtNDBjNy04MjA0LTE0ZDY4M2JiMThlMiJ9\",\"startTime\":\"2022-02-16T02:26:49.0000000Z\",\"endTime\":\"2022-02-16T02:26:53.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,14 +122,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"afe28061-926f-4209-8f46-a0b656555922\"},\"etag\":\"\\\"0000c518-0000-0200-0000-620c60ed0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23\",\"name\":\"psdnsresolvername23\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:26:49.6221368Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:26:49.6221368Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"afe28061-926f-4209-8f46-a0b656555922\"},\"etag\":\"\\\"0000c518-0000-0200-0000-620c60ed0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23\",\"name\":\"psdnsresolvername23\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-16T02:26:49.6221368Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-16T02:26:49.6221368Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2023-07-01-preview", "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=2022-07-01+5": { + "Remove-AzDnsResolverOutboundEndpoint+[NoContext]+Delete an Outbound Endpoint by name, expected Outbound Endpoint deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername23/outboundEndpoints/psoutboundendpointname23?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Recording.json new file mode 100644 index 000000000000..c8dbf09718a1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Recording.json @@ -0,0 +1,728 @@ +{ + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461714551\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9W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pr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=M3kXqtR7QpoXqnDAttA8mtxf-vvRAqCdlPfdxIbN-NqdKkA1asBxGqyXzRMFmYFDzWr5LsbfBH1yJthnUmCxqDUTpcr0QVCC-1yJYMyKdi0r0MHaWpmk7FNpFZk4StxNFG_1HjfS5DD3arato9s-nw9jlO9MvSsFME-1iVLTOLIiS-UBRYZo0EWsSdo67lAAUtesG0_qJ_sabNfrE45pIS1MBvhdmFQXVlQ1BEoNo5wNvdoDB6IE5k0Yfn59yOwlK5B86dnGVyJNdZS6sfsx8a5-RLzBBB1OiUNB-tU2XuVcrRcowXoRJdMg4Wl_RhJutdxhTSfod9-d-Xd84W-rmw\u0026h=vE993snojbD82friOZeLd7fqlsSiA_MHhB8R9qqrBKU" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "3e5b0a34-528d-4782-9f6d-983135acd308" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461558390\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmd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zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=dGum-NfMJ9K-S83VfI7el7y8YvNp1r4cDT68VM--xYDsJ0EcJ5S_5gxO7ZXyLWEx-ESa0EE87dDyzuNGmvhAy32cdm8tlq6SqB9qvpKOhE-KCpVBKJNVsPjPg1XFPgIV85uzINI1qf5oD2fFlM9Q5a0S0DmqDiAQCCOip9AL05VJ1nSFCr6vulJb2w6WC3jwgeB849kKnuWvYJoVTICl9uScT8WXrBukS8QO3eMVYXg_qsBSKmJHsobmMafEBILdZ17n4qfqkZvXwEVaeB8UyJKXVLjo8Wl999tfEbWMqmVRaQpAfTAdjE0qHC4vjJIMdCjaMyrn-itpSyWjP46-Mw\u0026h=7X80hGur_kJfHggNGYHpqcPlpEwFRdEaIdlO-Liq8F8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "3e5b0a34-528d-4782-9f6d-983135acd308" ], + "x-ms-correlation-request-id": [ "3e5b0a34-528d-4782-9f6d-983135acd308" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035046Z:3e5b0a34-528d-4782-9f6d-983135acd308" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 010AFD75F57C4E56B540F26BDA2E1802 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:50:44Z" ], + "Date": [ "Mon, 21 Oct 2024 03:50:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "557" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"6b0191a8-0000-0800-0000-6715cf960000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65\",\"name\":\"psdnsresolverpolicyname65\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:50:45.9683307Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:50:45.9683307Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461558390\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggE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Cs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=dGum-NfMJ9K-S83VfI7el7y8YvNp1r4cDT68VM--xYDsJ0EcJ5S_5gxO7ZXyLWEx-ESa0EE87dDyzuNGmvhAy32cdm8tlq6SqB9qvpKOhE-KCpVBKJNVsPjPg1XFPgIV85uzINI1qf5oD2fFlM9Q5a0S0DmqDiAQCCOip9AL05VJ1nSFCr6vulJb2w6WC3jwgeB849kKnuWvYJoVTICl9uScT8WXrBukS8QO3eMVYXg_qsBSKmJHsobmMafEBILdZ17n4qfqkZvXwEVaeB8UyJKXVLjo8Wl999tfEbWMqmVRaQpAfTAdjE0qHC4vjJIMdCjaMyrn-itpSyWjP46-Mw\u0026h=7X80hGur_kJfHggNGYHpqcPlpEwFRdEaIdlO-Liq8F8+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461558390\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDV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L_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=dGum-NfMJ9K-S83VfI7el7y8YvNp1r4cDT68VM--xYDsJ0EcJ5S_5gxO7ZXyLWEx-ESa0EE87dDyzuNGmvhAy32cdm8tlq6SqB9qvpKOhE-KCpVBKJNVsPjPg1XFPgIV85uzINI1qf5oD2fFlM9Q5a0S0DmqDiAQCCOip9AL05VJ1nSFCr6vulJb2w6WC3jwgeB849kKnuWvYJoVTICl9uScT8WXrBukS8QO3eMVYXg_qsBSKmJHsobmMafEBILdZ17n4qfqkZvXwEVaeB8UyJKXVLjo8Wl999tfEbWMqmVRaQpAfTAdjE0qHC4vjJIMdCjaMyrn-itpSyWjP46-Mw\u0026h=7X80hGur_kJfHggNGYHpqcPlpEwFRdEaIdlO-Liq8F8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "5439227a-c458-47a8-b210-eb95e03126d3" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "4eaae3e9-70cb-49f7-9cdd-009e6ccede0c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "4eaae3e9-70cb-49f7-9cdd-009e6ccede0c" ], + "x-ms-correlation-request-id": [ "4eaae3e9-70cb-49f7-9cdd-009e6ccede0c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035051Z:4eaae3e9-70cb-49f7-9cdd-009e6ccede0c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5B00CD75AD684D209AAB08B0764DF135 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:50:51Z" ], + "Date": [ "Mon, 21 Oct 2024 03:50:50 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=\",\"startTime\":\"2024-10-21T03:50:46.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dn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": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=?api-version=2023-07-01-preview\u0026t=638650794461558390\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUH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EbWMqmVRaQpAfTAdjE0qHC4vjJIMdCjaMyrn-itpSyWjP46-Mw\u0026h=7X80hGur_kJfHggNGYHpqcPlpEwFRdEaIdlO-Liq8F8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "5439227a-c458-47a8-b210-eb95e03126d3" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c835b292-3b4f-4618-aa98-50dfb8515c75" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c835b292-3b4f-4618-aa98-50dfb8515c75" ], + "x-ms-correlation-request-id": [ "c835b292-3b4f-4618-aa98-50dfb8515c75" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035121Z:c835b292-3b4f-4618-aa98-50dfb8515c75" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 539135CE6810431A8885B8BFF0DF84FB Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:21Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiN2ZkMmJiZDUtMTY5Yy00ZDBkLTllOTAtMmJjOTU2ZTY4ZGNkIn0=\",\"startTime\":\"2024-10-21T03:50:46.0000000Z\",\"endTime\":\"2024-10-21T03:50:52.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "5439227a-c458-47a8-b210-eb95e03126d3" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "36d606c3-abb2-467e-9ab8-1d962387fad6" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "36d606c3-abb2-467e-9ab8-1d962387fad6" ], + "x-ms-correlation-request-id": [ "36d606c3-abb2-467e-9ab8-1d962387fad6" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035122Z:36d606c3-abb2-467e-9ab8-1d962387fad6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 402A57C147534751BD199BC12A64798B Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:21Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "592" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"299f7268-bd98-4521-93b9-e337e682c1ab\"},\"etag\":\"\\\"28000134-0000-0800-0000-6715cf9c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65\",\"name\":\"psdnsresolverpolicyname65\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:50:45.9683307Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:50:45.9683307Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "845dfcc3-8d99-4d84-a77a-f08c1c3be73c" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828705526\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2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aYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=lrM5rENaJYV5cMUTHF6DrjR7JOkn1aYYTGrsMz3dSPMCeMYSSgGHiwzJUTT1PCmkOJnPpf1lW3GnnXmUb4EVXWhFTqMbAnS3PzGwPBKrJ6ROIj0vHJf8PoGOj45bpHrkM9AFnLuumx6DRnos5rGx75Fl6tTzA5foqGZZCFSsSK0ZUXibg0yp0pxJ2pqQJjWmrlwPwhnjRf55Dk64Vx4WRla0zCUvxM1A--ypBDqu9d1hDHomXY4voz9WQ4zDgrZSLeyRkE-q0EIWk_7-ZWut-ZBkYRFYrm-NSRBQrvHnvOeLbihARDyY3t_jP8v42_yqii8WPjw0LKrAGqDRnJSVkA\u0026h=bOIwND--gGguveyQDuqgWeLlhCjFjs7K5LF7zO6DFww" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "df737f51-4a94-414a-9994-c263d5572994" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQ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DQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=kOdDQ-VSAh7W8lrSrgi_HAE6vXBY5K4Vm-GqXSNVTwKSBAJhR3XVehOAFrNurtzbmJ8VXeBOT-3_YfFYlfYyKt0pBcKbJ0cc1UVbk87fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "df737f51-4a94-414a-9994-c263d5572994" ], + "x-ms-correlation-request-id": [ "df737f51-4a94-414a-9994-c263d5572994" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035122Z:df737f51-4a94-414a-9994-c263d5572994" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CC5E6DDA7E7D478786E10345D29C727D Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:22Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:22 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wec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fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24k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-VSAh7W8lrSrgi_HAE6vXBY5K4Vm-GqXSNVTwKSBAJhR3XVehOAFrNurtzbmJ8VXeBOT-3_YfFYlfYyKt0pBcKbJ0cc1UVbk87fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "845dfcc3-8d99-4d84-a77a-f08c1c3be73c" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9b525037-66e0-48ca-b9d1-2c0acac6bb3d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9b525037-66e0-48ca-b9d1-2c0acac6bb3d" ], + "x-ms-correlation-request-id": [ "9b525037-66e0-48ca-b9d1-2c0acac6bb3d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035128Z:9b525037-66e0-48ca-b9d1-2c0acac6bb3d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 12786F71344E443F9F49150B61F3CF2B Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:27Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=\",\"startTime\":\"2024-10-21T03:51:22.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRM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FBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=kOdDQ-VSAh7W8lrSrgi_HAE6vXBY5K4Vm-GqXSNVTwKSBAJhR3XVehOAFrNurtzbmJ8VXeBOT-3_YfFYlfYyKt0pBcKbJ0cc1UVbk87fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828549190\u0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BkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=kOdDQ-VSAh7W8lrSrgi_HAE6vXBY5K4Vm-GqXSNVTwKSBAJhR3XVehOAFrNurtzbmJ8VXeBOT-3_YfFYlfYyKt0pBcKbJ0cc1UVbk87fLpLmQiaumCdQu_eeo-i0OTzofjIJAnG518-HhiwM4yCUI0g2IKfL6ALrYdPd0mToavt15peRGW29bxGATICgHkPIeJivcLVXOV4H5_jaS9jcA_YGx3PnhdPCZJ54ih94d_tMw9BlyRmcutas-aWEkQmYn88iMe4nN8i33sjdwFkiHL02adMh5gIsPyqTYbTbDk7bufRFaqX9WNCAhA6ALYuPtEWUtGku8oxV8G2D42J0EQ\u0026h=dE6D1xWSWC75rpnp_5ZiaUE0eHHevCoWmuBLxfs3QHE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "845dfcc3-8d99-4d84-a77a-f08c1c3be73c" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b54f97bd-001a-4649-bedd-0928edaf22ed" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b54f97bd-001a-4649-bedd-0928edaf22ed" ], + "x-ms-correlation-request-id": [ "b54f97bd-001a-4649-bedd-0928edaf22ed" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035158Z:b54f97bd-001a-4649-bedd-0928edaf22ed" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3DF5D327876D44F99B11CDA3D91F9D8F Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:58Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=\",\"startTime\":\"2024-10-21T03:51:22.0000000Z\",\"endTime\":\"2024-10-21T03:51:32.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828705526\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVG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CFSsSK0ZUXibg0yp0pxJ2pqQJjWmrlwPwhnjRf55Dk64Vx4WRla0zCUvxM1A--ypBDqu9d1hDHomXY4voz9WQ4zDgrZSLeyRkE-q0EIWk_7-ZWut-ZBkYRFYrm-NSRBQrvHnvOeLbihARDyY3t_jP8v42_yqii8WPjw0LKrAGqDRnJSVkA\u0026h=bOIwND--gGguveyQDuqgWeLlhCjFjs7K5LF7zO6DFww+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNTU0ODRmZmYtMTM4MC00ZGM4LTk4M2EtZTk4ZThiMzIwMDVkIn0=?api-version=2023-07-01-preview\u0026t=638650794828705526\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbj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T1PCmkOJnPpf1lW3GnnXmUb4EVXWhFTqMbAnS3PzGwPBKrJ6ROIj0vHJf8PoGOj45bpHrkM9AFnLuumx6DRnos5rGx75Fl6tTzA5foqGZZCFSsSK0ZUXibg0yp0pxJ2pqQJjWmrlwPwhnjRf55Dk64Vx4WRla0zCUvxM1A--ypBDqu9d1hDHomXY4voz9WQ4zDgrZSLeyRkE-q0EIWk_7-ZWut-ZBkYRFYrm-NSRBQrvHnvOeLbihARDyY3t_jP8v42_yqii8WPjw0LKrAGqDRnJSVkA\u0026h=bOIwND--gGguveyQDuqgWeLlhCjFjs7K5LF7zO6DFww", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "845dfcc3-8d99-4d84-a77a-f08c1c3be73c" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "258b7965-fdd1-4dc0-aa23-0b52ac8f56fc" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "258b7965-fdd1-4dc0-aa23-0b52ac8f56fc" ], + "x-ms-correlation-request-id": [ "258b7965-fdd1-4dc0-aa23-0b52ac8f56fc" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035158Z:258b7965-fdd1-4dc0-aa23-0b52ac8f56fc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 560B56AC9CBF4657957FF4F9AF3D349B Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:58Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:58 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy by name, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "bfe8fe20-1c98-4f80-b07d-44c3d502fdf4" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "3cfe056a-8f1d-4380-8a10-c80d8c0455a0" ], + "x-ms-correlation-request-id": [ "3cfe056a-8f1d-4380-8a10-c80d8c0455a0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035159Z:3cfe056a-8f1d-4380-8a10-c80d8c0455a0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7E7EDE7BE77C4F5A84978424D7959E98 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:58Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "266" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname65\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "6f776c8c-9ad5-4ad1-b61e-de49438440e5" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=?api-version=2023-07-01-preview\u0026t=638650795201928611\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKw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0J3bfcfNZTdBoqRJVgESBV2OiiZWXQ\u0026h=gXODItvGYXnLtHH1CymuOxpjPxUDnrk35QTNrMnYmxI" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "6f776c8c-9ad5-4ad1-b61e-de49438440e5" ], + "x-ms-correlation-request-id": [ "6f776c8c-9ad5-4ad1-b61e-de49438440e5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035200Z:6f776c8c-9ad5-4ad1-b61e-de49438440e5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A2F5B9596EAA4325B97FE840B17E496D Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:51:59Z" ], + "Date": [ "Mon, 21 Oct 2024 03:51:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "557" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6b01e6ba-0000-0800-0000-6715cfe00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66\",\"name\":\"psdnsresolverpolicyname66\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:52:00.0053598Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:52:00.0053598Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=?api-version=2023-07-01-preview\u0026t=638650795201928611\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQcBAQSC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xI+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=?api-version=2023-07-01-preview\u0026t=638650795201928611\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBA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AJLDrZY65vVq5TeeZ0J3bfcfNZTdBoqRJVgESBV2OiiZWXQ\u0026h=gXODItvGYXnLtHH1CymuOxpjPxUDnrk35QTNrMnYmxI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "53dc2a88-2276-4059-acc2-69da448d4fa1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "17874778-8bbe-4fb0-b2f8-93e1e207cb15" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "17874778-8bbe-4fb0-b2f8-93e1e207cb15" ], + "x-ms-correlation-request-id": [ "17874778-8bbe-4fb0-b2f8-93e1e207cb15" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035205Z:17874778-8bbe-4fb0-b2f8-93e1e207cb15" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9CD225B10E264016817101602AFA087F Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:05Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiYjJiZmZhOTItOGVjMC00ZGUwLTk5NjEtNjgwMGEwYzM1OTAzIn0=\",\"startTime\":\"2024-10-21T03:52:00.0000000Z\",\"endTime\":\"2024-10-21T03:52:02.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "53dc2a88-2276-4059-acc2-69da448d4fa1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "d6fb0577-2c4f-4aad-958d-609c41e4b68c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "498" ], + "x-ms-request-id": [ "d6fb0577-2c4f-4aad-958d-609c41e4b68c" ], + "x-ms-correlation-request-id": [ "d6fb0577-2c4f-4aad-958d-609c41e4b68c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035205Z:d6fb0577-2c4f-4aad-958d-609c41e4b68c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A8338336606646058636AE6389E9C196 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:05Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "592" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"abdcdc8b-9b2d-4909-9e2e-34cf469e17c0\"},\"etag\":\"\\\"2800ce3d-0000-0800-0000-6715cfe20000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66\",\"name\":\"psdnsresolverpolicyname66\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:52:00.0053598Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:52:00.0053598Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "e1e0178e-5f01-4843-b20c-08dea2a0bf71" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "73ef8f43-a76c-4713-9972-522ceeb6e4d9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "73ef8f43-a76c-4713-9972-522ceeb6e4d9" ], + "x-ms-correlation-request-id": [ "73ef8f43-a76c-4713-9972-522ceeb6e4d9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035205Z:73ef8f43-a76c-4713-9972-522ceeb6e4d9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 98C40D81419B4F3E9D5E6A2B75D37899 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:05Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "592" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"abdcdc8b-9b2d-4909-9e2e-34cf469e17c0\"},\"etag\":\"\\\"2800ce3d-0000-0800-0000-6715cfe20000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66\",\"name\":\"psdnsresolverpolicyname66\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T03:52:00.0053598Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T03:52:00.0053598Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "445d26bd-24df-4e51-9d42-b35d141d4be2" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273791629\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCN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jB55-A\u0026h=dpf4tHZ85516cH1V7n5O8z6riZPp1fvitBo4a6tyT5w" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "e1334737-c96d-4a4a-9a00-4975220fdb7b" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273635339\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb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vX4AOeUEg269olc6p4UtkmE9MNp_lWHnJh_PyllMuH38oxZV68Mn7h_DdbQPTUAPVpjyPo5Dli6dgwJmS4_ZRM-hFLG2tWw16nJVlwhdWSBzD9NC0fIxcyTw\u0026h=IY0RxxOK-DhUlzfSlhN9Pt0AtsKT49HVE1d7VlEbkB0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "e1334737-c96d-4a4a-9a00-4975220fdb7b" ], + "x-ms-correlation-request-id": [ "e1334737-c96d-4a4a-9a00-4975220fdb7b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035207Z:e1334737-c96d-4a4a-9a00-4975220fdb7b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D8E4F245B4C5421FBDB151EA2D4D1DB0 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:06Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:06 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273635339\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQ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vcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=KVbEh1m3uJYZUgMRP3fKo05GsjTLtxwi-_AoF9K2W6aNDbRFVPVGsy8wdfP0e9Xztl9wKF3fmQXlfHYF7iJ9tum8gFrLccSUZwW3HS_NehQW2-NqOIpmcPU7aYj4DHKISYtail29at_1O_QAVbgYKqW_ITlbV7-ev0dBOs72S_8e-Utkq7Pw3WVdPGfY7rJXCa4eXsb5Bm4PUHsX7wjCPdIW5b8oonvX4AOeUEg269olc6p4UtkmE9MNp_lWHnJh_PyllMuH38oxZV68Mn7h_DdbQPTUAPVpjyPo5Dli6dgwJmS4_ZRM-hFLG2tWw16nJVlwhdWSBzD9NC0fIxcyTw\u0026h=IY0RxxOK-DhUlzfSlhN9Pt0AtsKT49HVE1d7VlEbkB0+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273635339\u0026c=MIIHhzCCBm-gAwIBAg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2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=KVbEh1m3uJYZUgMRP3fKo05GsjTLtxwi-_AoF9K2W6aNDbRFVPVGsy8wdfP0e9Xztl9wKF3fmQXlfHYF7iJ9tum8gFrLccSUZwW3HS_NehQW2-NqOIpmcPU7aYj4DHKISYtail29at_1O_QAVbgYKqW_ITlbV7-ev0dBOs72S_8e-Utkq7Pw3WVdPGfY7rJXCa4eXsb5Bm4PUHsX7wjCPdIW5b8oonvX4AOeUEg269olc6p4UtkmE9MNp_lWHnJh_PyllMuH38oxZV68Mn7h_DdbQPTUAPVpjyPo5Dli6dgwJmS4_ZRM-hFLG2tWw16nJVlwhdWSBzD9NC0fIxcyTw\u0026h=IY0RxxOK-DhUlzfSlhN9Pt0AtsKT49HVE1d7VlEbkB0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "445d26bd-24df-4e51-9d42-b35d141d4be2" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "1e9cc2b0-3581-4f30-bb16-672024ae4359" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "1e9cc2b0-3581-4f30-bb16-672024ae4359" ], + "x-ms-correlation-request-id": [ "1e9cc2b0-3581-4f30-bb16-672024ae4359" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035212Z:1e9cc2b0-3581-4f30-bb16-672024ae4359" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FE46BAB154034749981C58B3CC4FE9DF Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:12Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=\",\"startTime\":\"2024-10-21T03:52:07.0000000Z\",\"endTime\":\"2024-10-21T03:52:12.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273791629\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCg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uKVgAhzVewKyFxmo0O7L8Ddr-xNKoTEJZnblmEhP-tvVkRx5uDiJ0lVhhI9cPOnFvi9yz09vjB55-A\u0026h=dpf4tHZ85516cH1V7n5O8z6riZPp1fvitBo4a6tyT5w+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNDFiMTI5ZjktZWRjNS00ODE0LWE0YTgtOTQyMjMxNDViNTdmIn0=?api-version=2023-07-01-preview\u0026t=638650795273791629\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZ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kTWfhGRvUQr3Z50hq62CzbYIcg8NfmtsuoPbWUYm0hAwhJucyvy8ie0ZAtzLuKVgAhzVewKyFxmo0O7L8Ddr-xNKoTEJZnblmEhP-tvVkRx5uDiJ0lVhhI9cPOnFvi9yz09vjB55-A\u0026h=dpf4tHZ85516cH1V7n5O8z6riZPp1fvitBo4a6tyT5w", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "17" ], + "x-ms-client-request-id": [ "445d26bd-24df-4e51-9d42-b35d141d4be2" ], + "CommandName": [ "Remove-AzDnsResolverPolicy" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicy_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f33ec3e7-f24e-4c4a-b93d-da3753ed313a" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f33ec3e7-f24e-4c4a-b93d-da3753ed313a" ], + "x-ms-correlation-request-id": [ "f33ec3e7-f24e-4c4a-b93d-da3753ed313a" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035212Z:f33ec3e7-f24e-4c4a-b93d-da3753ed313a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 14574FAC3F864AAABAE2EE60ECDC23A1 Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:12Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:12 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicy+[NoContext]+Delete a DNS resolver policy via identity, expected DNS resolver policy deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname66?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "264b2f50-6dc1-49ff-90a0-73bb496812cf" ], + "CommandName": [ "Get-AzDnsResolverPolicy" ], + "FullCommandName": [ "Get-AzDnsResolverPolicy_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "16540580-6c06-4e60-ac5d-70f1a0418d23" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "16540580-6c06-4e60-ac5d-70f1a0418d23" ], + "x-ms-correlation-request-id": [ "16540580-6c06-4e60-ac5d-70f1a0418d23" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T035213Z:16540580-6c06-4e60-ac5d-70f1a0418d23" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B67EB771437241ABB42151779E98C5EF Ref B: CO6AA3150218031 Ref C: 2024-10-21T03:52:12Z" ], + "Date": [ "Mon, 21 Oct 2024 03:52:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "286" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"details\":null,\"code\":\"NotFound\",\"message\":\"DNS resolver policy not found in database. dnsResolverPolicyResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/dnsResolverPolicies/psdnsresolverpolicyname66\",\"target\":null}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Tests.ps1 new file mode 100644 index 000000000000..39c1dad11884 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicy.Tests.ps1 @@ -0,0 +1,47 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverPolicy' { + It 'Delete a DNS resolver policy by name, expected DNS resolver policy deleted' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname65"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + Remove-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + {Get-AzDnsResolverPolicy -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Throw + } + + It 'Delete a DNS resolver policy via identity, expected DNS resolver policy deleted' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname66"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + + New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + # ACT + Get-AzDnsResolverPolicy -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName | Remove-AzDnsResolverPolicy + + # ASSERT + {Get-AzDnsResolverPolicy -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Recording.json new file mode 100644 index 000000000000..43d4e4b48fc7 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Recording.json @@ -0,0 +1,1278 @@ +{ + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSo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N9Q0Zz23eEQS5CkJxorpRZuo4TMedIwZ9gaz0zOqDKhC2PedbgJqMYDNZ9k4WoTDU62gdK0irbt4f7IfqJ6I8dMTRfBXmztll_my7lsW6dWFvpx_SrgL4NwW8EktlQEq_yg\u0026h=L21gihfBvJgVoDKjSxcbTa3p0deDQN3OMs9pNMgtGgY" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "0d2bc47d-bc72-4e0e-bb11-4ef42803f65e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDS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ibZsxg-yrmof8BMTyhmCiuXF6__0KXLqz-pxWkKqeR42uijsfoTfvXj17TtTswEMrrz4xM_kngP14f0y6IQZroJXdKHemYI554LpxQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "0d2bc47d-bc72-4e0e-bb11-4ef42803f65e" ], + "x-ms-correlation-request-id": [ "0d2bc47d-bc72-4e0e-bb11-4ef42803f65e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053159Z:0d2bc47d-bc72-4e0e-bb11-4ef42803f65e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4059B255411B453CB1085F964FA9EA7E Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:31:58Z" ], + "Date": [ "Mon, 21 Oct 2024 05:31:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "580" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"72013c44-0000-0800-0000-6715e74f0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg\",\"name\":\"psdnsresolverpolicyforrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:23:05.3870984Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:31:59.670728Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn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xQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDB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WkKqeR42uijsfoTfvXj17TtTswEMrrz4xM_kngP14f0y6IQZroJXdKHemYI554LpxQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "fef9902b-4e19-4341-b9bb-934113789fdf" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c1a19ba8-0655-4bd5-b79b-1622fda155b9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c1a19ba8-0655-4bd5-b79b-1622fda155b9" ], + "x-ms-correlation-request-id": [ "c1a19ba8-0655-4bd5-b79b-1622fda155b9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053205Z:c1a19ba8-0655-4bd5-b79b-1622fda155b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A1FF4E9E1D5D4032A932C535D39E74D8 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:04Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=\",\"startTime\":\"2024-10-21T05:31:59.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3lu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VP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=BnC-iF4lV0Hx-eDmLLGt9WLDg3aCb5L8-Lez3Zc7XWHgBLMZ4WtnXs3oVmyiEzQJtErWKz7EnG2lT8qc-UPp512LypibZsxg-yrmof8BMTyhmCiuXF6__0KXLqz-pxWkKqeR42uijsfoTfvXj17TtTswEMrrz4xM_kngP14f0y6IQZroJXdKHemYI554LpxQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=?api-version=2023-07-01-preview\u0026t=638650855197644788\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwO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jJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=BnC-iF4lV0Hx-eDmLLGt9WLDg3aCb5L8-Lez3Zc7XWHgBLMZ4WtnXs3oVmyiEzQJtErWKz7EnG2lT8qc-UPp512LypibZsxg-yrmof8BMTyhmCiuXF6__0KXLqz-pxWkKqeR42uijsfoTfvXj17TtTswEMrrz4xM_kngP14f0y6IQZroJXdKHemYI554LpxQ1iFBKvfy1cW8yRYnpx5f4MAtCWeDpZg4Y_TzDZdwXoDPHxIzVgAWc4zN_V4sAh70bQU5rUAyaewif_1VlZKKyU8X38i5e3f00dcv5nvabf8Uo90EmGX2WJ7dgMM8afK9AkslyJ8vICHKHgMJO9m9vA\u0026h=yT5CTQzZtKvrpOddqbea2HmysqlJ-X0BhhykrcUTUlY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "fef9902b-4e19-4341-b9bb-934113789fdf" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "76e5f910-f786-4006-81ff-01d11182ca5c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "76e5f910-f786-4006-81ff-01d11182ca5c" ], + "x-ms-correlation-request-id": [ "76e5f910-f786-4006-81ff-01d11182ca5c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053235Z:76e5f910-f786-4006-81ff-01d11182ca5c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A6E4D8377E554FDD87D69F9F1FFFA367 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:35Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiNmIzM2ZjMWQtODhkYS00NjZlLWI1OTctYTNmMTBlNWM2ZjM4In0=\",\"startTime\":\"2024-10-21T05:31:59.0000000Z\",\"endTime\":\"2024-10-21T05:32:07.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "fef9902b-4e19-4341-b9bb-934113789fdf" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b1487352-415e-4fdd-be51-579b15bf8542" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b1487352-415e-4fdd-be51-579b15bf8542" ], + "x-ms-correlation-request-id": [ "b1487352-415e-4fdd-be51-579b15bf8542" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053235Z:b1487352-415e-4fdd-be51-579b15bf8542" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3A28D2CE38604FDBA284157AF4C6958B Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:35Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "615" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e4554340-f899-4623-ac1c-739e2a9a0327\"},\"etag\":\"\\\"2b003e46-0000-0800-0000-6715e7570000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg\",\"name\":\"psdnsresolverpolicyforrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:23:05.3870984Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:31:59.670728Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/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d5bzhS6HEayGa7eZz4xATUtnWk" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "ab5cabf7-48bc-4bfe-984c-b4bd03067007" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9?api-version=2023-07-01-preview\u0026t=638650855563899620\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsT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8eXjZcPqF4BiAuwgJF3ebtOwp8FCcAI8BLwd04ZvwyqM5qi8MQhIUMXXQE3jNezNdJgbHXm6bXBd67p_QDm2Ef6yl7W0UIKWOZg_vwlogRnKlYZXLDHFfEMLOCckthEJA_o39WLphhBQ\u0026h=LEAD4OCq37hgs3kAM9uBhofFL3WLoEDL10YOE2YIz00" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "ab5cabf7-48bc-4bfe-984c-b4bd03067007" ], + "x-ms-correlation-request-id": [ "ab5cabf7-48bc-4bfe-984c-b4bd03067007" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053236Z:ab5cabf7-48bc-4bfe-984c-b4bd03067007" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E549CD3967AA47C18362C59F5B4425F0 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:35Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:35 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "637" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7201554f-0000-0800-0000-6715e7740000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\",\"name\":\"psdnsresolverdomainlistforrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:23:12.5940483Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:32:36.2337125Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9?api-version=2023-07-01-preview\u0026t=638650855563899620\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJ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AuwgJF3ebtOwp8FCcAI8BLwd04ZvwyqM5qi8MQhIUMXXQE3jNezNdJgbHXm6bXBd67p_QDm2Ef6yl7W0UIKWOZg_vwlogRnKlYZXLDHFfEMLOCckthEJA_o39WLphhBQ\u0026h=LEAD4OCq37hgs3kAM9uBhofFL3WLoEDL10YOE2YIz00+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9?api-version=2023-07-01-preview\u0026t=638650855563899620\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBY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_isnN8pk6AuYKSdrB8RW-U6W0s27GHiQg8JwDpwPaosthXQMOPxjnquZi3iBGTFXm5vvw3G--Uax81OMfP4r-1iYHsWIU1ZSZm8eXjZcPqF4BiAuwgJF3ebtOwp8FCcAI8BLwd04ZvwyqM5qi8MQhIUMXXQE3jNezNdJgbHXm6bXBd67p_QDm2Ef6yl7W0UIKWOZg_vwlogRnKlYZXLDHFfEMLOCckthEJA_o39WLphhBQ\u0026h=LEAD4OCq37hgs3kAM9uBhofFL3WLoEDL10YOE2YIz00", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "0c046603-ce05-4e23-acf6-9c5c39732cf4" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ef17aa29-7011-4aca-bed5-96015b8a3318" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ef17aa29-7011-4aca-bed5-96015b8a3318" ], + "x-ms-correlation-request-id": [ "ef17aa29-7011-4aca-bed5-96015b8a3318" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053241Z:ef17aa29-7011-4aca-bed5-96015b8a3318" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 8CB7597170DF4668B0EF28F9F5C8F2B4 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:41Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM1M2Q1M2Y5LTIyNmUtNDdkZi1hMTg2LWU0YzEwY2RjYTE1YSJ9\",\"startTime\":\"2024-10-21T05:32:36.0000000Z\",\"endTime\":\"2024-10-21T05:32:37.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "0c046603-ce05-4e23-acf6-9c5c39732cf4" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3a01c32b-f056-4176-892c-ab27f8d50fc3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3a01c32b-f056-4176-892c-ab27f8d50fc3" ], + "x-ms-correlation-request-id": [ "3a01c32b-f056-4176-892c-ab27f8d50fc3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053241Z:3a01c32b-f056-4176-892c-ab27f8d50fc3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2CA3DFE305704391824F92B5011EE685 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:41Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "672" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"07f265d3-7ad6-46a0-9af0-30e6a4b84c09\"},\"etag\":\"\\\"3e00821e-0000-0800-0000-6715e7750000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\",\"name\":\"psdnsresolverdomainlistforrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:23:12.5940483Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:32:36.2337125Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "477" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/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-After": [ "5" ], + "x-ms-activity-id": [ "a369aa31-5432-4753-a5f7-aab0e476704a" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9?api-version=2023-07-01-preview\u0026t=638650855633519020\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgY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GfvEa9jXPBlpi1EdNls9GPIxcp9DXc1JtrHXfzQ6YdmwD0cIOTGCWsYC4E0ncdYd2worwvo4nlCAmPXU7bctoLpRX7WYg\u0026h=96k7N-iz6qtmmIZl1ozaVLhhucRwwJL2YKQOXTru5c4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "a369aa31-5432-4753-a5f7-aab0e476704a" ], + "x-ms-correlation-request-id": [ "a369aa31-5432-4753-a5f7-aab0e476704a" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053243Z:a369aa31-5432-4753-a5f7-aab0e476704a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D725B699B3764E53A331CAA359973C2A Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:42Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:42 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "990" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2b005e4a-0000-0800-0000-6715e77b0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg\",\"name\":\"psdnssecurityrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:32:43.1644017Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:32:43.1644017Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9?api-version=2023-07-01-preview\u0026t=638650855633519020\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3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QHGhyejosFjcn2Rlh-FXpN95pKdlAGajYVPo3PXkdgaonPnNy-W8XAdufYnvFKqfueK51NQEVURggtFTrQSaKHMKZ3_QuYM31e70p9Irg6ozhfq0NfZh8WFIV6-SI06oAjuZVYPp6HD6P_HDQDPo27lI5G7qKinYGKT2BdQAYtJzRbDUtgoc3NW2TjBS4d75owqL00hN8GfvEa9jXPBlpi1EdNls9GPIxcp9DXc1JtrHXfzQ6YdmwD0cIOTGCWsYC4E0ncdYd2worwvo4nlCAmPXU7bctoLpRX7WYg\u0026h=96k7N-iz6qtmmIZl1ozaVLhhucRwwJL2YKQOXTru5c4+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9?api-version=2023-07-01-preview\u0026t=638650855633519020\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6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4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=QO-E3-D1nZ9HBJFLcJPxYX_NILLj-63qaHKAmYxWYVbTKb_wQHGhyejosFjcn2Rlh-FXpN95pKdlAGajYVPo3PXkdgaonPnNy-W8XAdufYnvFKqfueK51NQEVURggtFTrQSaKHMKZ3_QuYM31e70p9Irg6ozhfq0NfZh8WFIV6-SI06oAjuZVYPp6HD6P_HDQDPo27lI5G7qKinYGKT2BdQAYtJzRbDUtgoc3NW2TjBS4d75owqL00hN8GfvEa9jXPBlpi1EdNls9GPIxcp9DXc1JtrHXfzQ6YdmwD0cIOTGCWsYC4E0ncdYd2worwvo4nlCAmPXU7bctoLpRX7WYg\u0026h=96k7N-iz6qtmmIZl1ozaVLhhucRwwJL2YKQOXTru5c4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "1f709f16-e33c-45bb-8c4c-496fd75ebdd6" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "46f96c96-7222-4a12-9e1f-e500669da4aa" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "46f96c96-7222-4a12-9e1f-e500669da4aa" ], + "x-ms-correlation-request-id": [ "46f96c96-7222-4a12-9e1f-e500669da4aa" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053248Z:46f96c96-7222-4a12-9e1f-e500669da4aa" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 354A2B691C8640259A8442F53AAA6104 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:48Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImM4NDRhNWQxLTdlYWItNDMxMC1iMDBhLWEzYmQ4MmE1NzI2OSJ9\",\"startTime\":\"2024-10-21T05:32:43.0000000Z\",\"endTime\":\"2024-10-21T05:32:47.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "1f709f16-e33c-45bb-8c4c-496fd75ebdd6" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "1b31570d-c4f6-4c55-bf87-ca6db5570d40" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "1b31570d-c4f6-4c55-bf87-ca6db5570d40" ], + "x-ms-correlation-request-id": [ "1b31570d-c4f6-4c55-bf87-ca6db5570d40" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053248Z:1b31570d-c4f6-4c55-bf87-ca6db5570d40" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F17567F3048C44388786E196AD0D28B2 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:48Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename8y8cdzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700b50a-0000-0800-0000-6715e77f0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg\",\"name\":\"psdnssecurityrulename8y8cdzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:32:43.1644017Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:32:43.1644017Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "81c67008-fc41-4ae8-9785-3a264e567622" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703764093\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5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xrD6cbfJCnfzGW6LzfJVHw9L-2aQtIigzgsiFakiLXbu9Di7v9lKGXEZ1TxD4d62kEyOvYlOPAEt3xV9eO-MB8sLwOJY7MJVDHNZSB6WIvPiUdQbOWLpZwn-DKzbFhfiyT43qYeIkrolhWPYjrH-C53xPCDq9y1GH3SlLjcnU_flls8uiaKO5KuADuZsPGCvLM92uWo84ER7qLoVp73fX5UF8OSJo-jQvlSQ2FTBj24YT7iGWe9bQV41_q8KOKPtKL3c6c3_BH0IGgHKZyr4zG9i-eFOkNoPlykw\u0026h=7qN91N2q-g0_rW6RJBPDgEDLOS-H_ThgrCxuphEfhAQ" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1fcfc4f5-d01b-4db0-bba4-5fc091c5bf33" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZW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6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=zRw67eS9Yvpnlxz4I_L85zaCP7litoyhhrYoytEX8QewCAlikYsFqhSWz3cFpw6vlOXjv8_C40LThlNF8x3ER3L__Atv08_YmLDnxDb9X5crkjniCXVmCW5DQEUCPaWNBodjFAwAzduVo4aKX1wOVB2PNWDcJYX5nDO2kYNmaxsK6GTr8WmPBDh1TlzJQ-4gezAPZS8DjBhzBMg6jtwcmzDKC2SxahZ5B7-j-Mvf1SYPB3Zg_N9_y9Pd-lioxCBi6IbSPOfjzr-EIQoOO1ovFUXSn70OQ2S_3j-sQaRNUKc280pqnwqZkJzM16Y2Hf_vvEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1fcfc4f5-d01b-4db0-bba4-5fc091c5bf33" ], + "x-ms-correlation-request-id": [ "1fcfc4f5-d01b-4db0-bba4-5fc091c5bf33" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053250Z:1fcfc4f5-d01b-4db0-bba4-5fc091c5bf33" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9A46B23088DF41A19041BEC4FF24EE33 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:49Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:49 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtH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vEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMC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Z5B7-j-Mvf1SYPB3Zg_N9_y9Pd-lioxCBi6IbSPOfjzr-EIQoOO1ovFUXSn70OQ2S_3j-sQaRNUKc280pqnwqZkJzM16Y2Hf_vvEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "81c67008-fc41-4ae8-9785-3a264e567622" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "acaadb8d-42b7-4fde-8b80-62261bc92652" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "acaadb8d-42b7-4fde-8b80-62261bc92652" ], + "x-ms-correlation-request-id": [ "acaadb8d-42b7-4fde-8b80-62261bc92652" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053255Z:acaadb8d-42b7-4fde-8b80-62261bc92652" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1A7EF8B43C8848A4B9AAAA107C89682A Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:32:55Z" ], + "Date": [ "Mon, 21 Oct 2024 05:32:55 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "514" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9\",\"startTime\":\"2024-10-21T05:32:50.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNv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TahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=zRw67eS9Yvpnlxz4I_L85zaCP7litoyhhrYoytEX8QewCAlikYsFqhSWz3cFpw6vlOXjv8_C40LThlNF8x3ER3L__Atv08_YmLDnxDb9X5crkjniCXVmCW5DQEUCPaWNBodjFAwAzduVo4aKX1wOVB2PNWDcJYX5nDO2kYNmaxsK6GTr8WmPBDh1TlzJQ-4gezAPZS8DjBhzBMg6jtwcmzDKC2SxahZ5B7-j-Mvf1SYPB3Zg_N9_y9Pd-lioxCBi6IbSPOfjzr-EIQoOO1ovFUXSn70OQ2S_3j-sQaRNUKc280pqnwqZkJzM16Y2Hf_vvEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703607881\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUw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kaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=zRw67eS9Yvpnlxz4I_L85zaCP7litoyhhrYoytEX8QewCAlikYsFqhSWz3cFpw6vlOXjv8_C40LThlNF8x3ER3L__Atv08_YmLDnxDb9X5crkjniCXVmCW5DQEUCPaWNBodjFAwAzduVo4aKX1wOVB2PNWDcJYX5nDO2kYNmaxsK6GTr8WmPBDh1TlzJQ-4gezAPZS8DjBhzBMg6jtwcmzDKC2SxahZ5B7-j-Mvf1SYPB3Zg_N9_y9Pd-lioxCBi6IbSPOfjzr-EIQoOO1ovFUXSn70OQ2S_3j-sQaRNUKc280pqnwqZkJzM16Y2Hf_vvEggYu6z9r0DHyTJg8spJw\u0026h=Cbv09nhle1yi8gBohlg58FuePN_Xuw2bcZFcScheV9Q", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "81c67008-fc41-4ae8-9785-3a264e567622" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "b1190385-c033-4624-bb21-e4ca875f366f" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "b1190385-c033-4624-bb21-e4ca875f366f" ], + "x-ms-correlation-request-id": [ "b1190385-c033-4624-bb21-e4ca875f366f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053326Z:b1190385-c033-4624-bb21-e4ca875f366f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: DB1F8F902B604F03B91C604C6028803B Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:25Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9\",\"startTime\":\"2024-10-21T05:32:50.0000000Z\",\"endTime\":\"2024-10-21T05:32:57.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703764093\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQC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2q-g0_rW6RJBPDgEDLOS-H_ThgrCxuphEfhAQ+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImMwOWM2MjRhLWQ2MWQtNDlmOC1hNWU1LWFiMzAwMmM2NmJlOCJ9?api-version=2023-07-01-preview\u0026t=638650855703764093\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYB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uWo84ER7qLoVp73fX5UF8OSJo-jQvlSQ2FTBj24YT7iGWe9bQV41_q8KOKPtKL3c6c3_BH0IGgHKZyr4zG9i-eFOkNoPlykw\u0026h=7qN91N2q-g0_rW6RJBPDgEDLOS-H_ThgrCxuphEfhAQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "81c67008-fc41-4ae8-9785-3a264e567622" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "31f36d42-608a-4597-b449-6fd8a3cf6bc4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "31f36d42-608a-4597-b449-6fd8a3cf6bc4" ], + "x-ms-correlation-request-id": [ "31f36d42-608a-4597-b449-6fd8a3cf6bc4" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053326Z:31f36d42-608a-4597-b449-6fd8a3cf6bc4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4CF1D8865133481BB5F01FF035C81B6D Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:25 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule by name, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "7ec872ff-bf60-4f66-aa02-39644421802d" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "c42ce2a8-a938-444b-86e0-7b05162c4f97" ], + "x-ms-correlation-request-id": [ "c42ce2a8-a938-444b-86e0-7b05162c4f97" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053326Z:c42ce2a8-a938-444b-86e0-7b05162c4f97" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 020F768E598E48E78D798906926A1218 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "324" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename8y8cdzg/dnsSecurityRules/psdnssecurityrulename8y8cdzg\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q2NDM0YmUtMGUzMC00MzRlLWFhNDQtZDJjMjM4NT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0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=2-knqYUc5KOB1LXMlhM0YTnT39K5gevBCuqgLnm9azhr3ICOl0v_KLQ5B2SqREuhxDe0l9jOHX24fzcIIN2KcHISXwO0q35nLD5O-abBdoDslIaPALQwOduLt4o4aducyg7D2F6Dqy-JZRTw4sBLwNAp4LPR6QOu7zTDOyVjypCBSh_jdfoUST7NvUObj4WIP8V-GBQ2MLT_0oJaHYwGIjA6EcKqkD1JPdBqF6MGgUAqBARKSs-PhElnOqxPQg-4ES69V5eI3aTYgJRuzjz7HtzAbPOo507hV6umR3faMbnhCIrbPl09pYznpF9qmuUJmRp9_-OXwQGHIaP0iRj_OA\u0026h=sd04tyJ-TofQrX1qK1cRcmyuDhVMKGa51Nb82c4QI_0" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "fb880e84-e158-4134-a041-caf66d0e2bf0" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network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ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "fb880e84-e158-4134-a041-caf66d0e2bf0" ], + "x-ms-correlation-request-id": [ "fb880e84-e158-4134-a041-caf66d0e2bf0" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053327Z:fb880e84-e158-4134-a041-caf66d0e2bf0" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CE38815731CD4E1286665E2DA767E796 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"72011e60-0000-0800-0000-6715e7a70000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg\",\"name\":\"psdnsresolverpolicyforrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:24:05.2016485Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:27.0429429Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ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ATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=a7DOm9yia-3wtTmSPEK6CdHDoSA9zJTADzqEZa2G-K9KXgbOu_gg9uwACHOF4oEwUz-IsNO_Jq4HXiX6NPCdl_a2fX_kqirQuhft4bacmc9jpgOvtnKen8uzGThLTyM_oN6ElthSoHGkAIkTxEE2Kdee5z3McKs_0t1xtKk7i0ivTtB9lmUkQYFxv4UvfHgXF1cOlnAJVnIhlH7iEwkuz8tWDv2TO5OByIi3P_PBAFp4K4LFri40L1wC_CckqV3J3mSXryOAbVAmnplzKd-4XeNmwKmmXgIok8ROcOE3IaLDqireHTp62tf3yci8-LUIPsrmH6xkEnwZaeVy2aTq7Q\u0026h=9dv9en074dByBzru3P2YfHKcNUtkZbarb9tJEHn0A0U+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q2NDM0YmUtMGUzMC00MzRlLWFhNDQtZDJjMjM4NTIwNDkwIn0=?api-version=2023-07-01-preview\u0026t=638650856071835662\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACA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Bzru3P2YfHKcNUtkZbarb9tJEHn0A0U", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "e6aadeb7-3385-4db6-a7e1-e0d1083fa0c1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "7a15c274-1386-40dd-bd8c-0b8b5a7231ae" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "7a15c274-1386-40dd-bd8c-0b8b5a7231ae" ], + "x-ms-correlation-request-id": [ "7a15c274-1386-40dd-bd8c-0b8b5a7231ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053332Z:7a15c274-1386-40dd-bd8c-0b8b5a7231ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 433FCD30E1A14FC1887B22824BADC1D0 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:32Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q2NDM0YmUtMGUzMC00MzRlLWFhNDQtZDJjMjM4NTIwNDkwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiY2Q2NDM0YmUtMGUzMC00MzRlLWFhNDQtZDJjMjM4NTIwNDkwIn0=\",\"startTime\":\"2024-10-21T05:33:27.0000000Z\",\"endTime\":\"2024-10-21T05:33:27.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "e6aadeb7-3385-4db6-a7e1-e0d1083fa0c1" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "be8175c7-22e7-4f30-8f93-90bf4491c7da" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "be8175c7-22e7-4f30-8f93-90bf4491c7da" ], + "x-ms-correlation-request-id": [ "be8175c7-22e7-4f30-8f93-90bf4491c7da" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053332Z:be8175c7-22e7-4f30-8f93-90bf4491c7da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 226813279A404D52BE4F3EA95D8DBEF7 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:32Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"acd07d09-8c10-4e51-b4a8-3c6297bf0414\"},\"etag\":\"\\\"2b008950-0000-0800-0000-6715e7a70000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg\",\"name\":\"psdnsresolverpolicyforrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:24:05.2016485Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:27.0429429Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9?api-version=2023-07-01-preview\u0026t=638650856131938851\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYF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Lkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=YcEjDPWJRHthCTqtRCx_kAKtjM2w2j-jKZun92D3am7ZDjrsImZk0-G4CGMhrf6uVp3qjl4IW3UdsIWabbimYgstxZT8kn_wdN8nfkc3Lu6SPEh5wV3EsNyiVCKQU9guiNrdxZnqHJqLbSOdYKHzZlFpYDITg0nurUH283vVad5Q1ll71srMPqqxbXHj7I8sT7uhJ3Nm8xoKwGXxMLbWcJNXtuolXOo8ZgTBzZ_zeimZxz1-vVDUjWLh9mPY_vWCihKalt03yXrGensIYDgzxM4rHGc0irR1lcSPQc-LPTcnIH1lpJ-JfEX109s_-Bcj_HyT_MNszVc_6xLcWwBGIw\u0026h=RxK_XThEE-MWgrIYVayz3MmZTA3iNq55ROya5qE8Kx8" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "99388795-fe8b-4a79-99f0-6e20155945ae" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9?api-version=2023-07-01-preview\u0026t=638650856131938851\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxW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JDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=lYipQpnoNYLt_DoOUoT8FxLiQu2z1N1sOCjEVaEVRAYVgwGhqLGh8DdWRlgoaQethcuosev-PlaoYMpJBw85-Nwl1u9MNcx1SHgNG4h11AUA9Ih7WjzMtT_IUtWhvjAgHbmayQ-fiSxx6oaJD7dU88bgZjsq3JHd-ojMfq1XXKTGpADSoTGVQNaLDbd0HglEvZr2JNIXFUYAleu69F_GIhAkq941PIuIX_MRnAJAmuqsYadHJxp4mcpJXoYmdz1dDJgO938HeqQxOF6Fpuuu9k4W-nIOR88P8wi20mp98-__zpr6dcSFhhI5DqoYbeN3JLYHLYgaGvAkuOkUvnCoDQ\u0026h=JUSS7Z_Q_wf1OYd71tU62eVfwu4ROqiGcYnK9lcfpaU" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "99388795-fe8b-4a79-99f0-6e20155945ae" ], + "x-ms-correlation-request-id": [ "99388795-fe8b-4a79-99f0-6e20155945ae" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053333Z:99388795-fe8b-4a79-99f0-6e20155945ae" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CD0F04A7E17F4915945C4190A8D600A1 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:32Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:32 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "637" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7201ab61-0000-0800-0000-6715e7ad0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\",\"name\":\"psdnsresolverdomainlistforrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:24:12.8971749Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:33.1001251Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9?api-version=2023-07-01-preview\u0026t=638650856131938851\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAY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yukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=lYipQpnoNYLt_DoOUoT8FxLiQu2z1N1sOCjEVaEVRAYVgwGhqLGh8DdWRlgoaQethcuosev-PlaoYMpJBw85-Nwl1u9MNcx1SHgNG4h11AUA9Ih7WjzMtT_IUtWhvjAgHbmayQ-fiSxx6oaJD7dU88bgZjsq3JHd-ojMfq1XXKTGpADSoTGVQNaLDbd0HglEvZr2JNIXFUYAleu69F_GIhAkq941PIuIX_MRnAJAmuqsYadHJxp4mcpJXoYmdz1dDJgO938HeqQxOF6Fpuuu9k4W-nIOR88P8wi20mp98-__zpr6dcSFhhI5DqoYbeN3JLYHLYgaGvAkuOkUvnCoDQ\u0026h=JUSS7Z_Q_wf1OYd71tU62eVfwu4ROqiGcYnK9lcfpaU+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9?api-version=2023-07-01-preview\u0026t=638650856131938851\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwE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QcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=lYipQpnoNYLt_DoOUoT8FxLiQu2z1N1sOCjEVaEVRAYVgwGhqLGh8DdWRlgoaQethcuosev-PlaoYMpJBw85-Nwl1u9MNcx1SHgNG4h11AUA9Ih7WjzMtT_IUtWhvjAgHbmayQ-fiSxx6oaJD7dU88bgZjsq3JHd-ojMfq1XXKTGpADSoTGVQNaLDbd0HglEvZr2JNIXFUYAleu69F_GIhAkq941PIuIX_MRnAJAmuqsYadHJxp4mcpJXoYmdz1dDJgO938HeqQxOF6Fpuuu9k4W-nIOR88P8wi20mp98-__zpr6dcSFhhI5DqoYbeN3JLYHLYgaGvAkuOkUvnCoDQ\u0026h=JUSS7Z_Q_wf1OYd71tU62eVfwu4ROqiGcYnK9lcfpaU", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "f89e35d1-f836-4d4f-b7f9-315bfd309f93" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "501c87d4-c9b0-4025-ad05-8888ccc3c76b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "501c87d4-c9b0-4025-ad05-8888ccc3c76b" ], + "x-ms-correlation-request-id": [ "501c87d4-c9b0-4025-ad05-8888ccc3c76b" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053338Z:501c87d4-c9b0-4025-ad05-8888ccc3c76b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3E70C70D392C4A74B58CF5270E77BA87 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:38Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjM5ZmFlOTIyLWFlMjMtNDg5Yy05NTY3LTZiMTRjNTk1ZDFlMiJ9\",\"startTime\":\"2024-10-21T05:33:33.0000000Z\",\"endTime\":\"2024-10-21T05:33:37.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "f89e35d1-f836-4d4f-b7f9-315bfd309f93" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "2bb4ba38-364c-40d6-8c88-186719385e90" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "2bb4ba38-364c-40d6-8c88-186719385e90" ], + "x-ms-correlation-request-id": [ "2bb4ba38-364c-40d6-8c88-186719385e90" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053338Z:2bb4ba38-364c-40d6-8c88-186719385e90" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 448F659A3DCC4219A17668C05A3C1FC7 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:38Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "672" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"a38224f0-8097-425d-9e11-5016b51cc4da\"},\"etag\":\"\\\"3e00c525-0000-0800-0000-6715e7b10000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\",\"name\":\"psdnsresolverdomainlistforrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:24:12.8971749Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:33.1001251Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "477" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856207243151\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0Ixc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QByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=8x34u3eoP5I9SS6Xznf16Ss7d7fX6ARjuHMI5zlduumnO0aA0cGukoV2rcL0NBE2j14Qu2i5Jd0vopse6EKm4557IoEn1p2Gk42FsU5IThtADnpx0hBx3DsTxszsrXF-Zs9OUND-l4Z7eFWn4Td1oMAvVaPjaAEhuRxrms-bbhQKM_E6F4f5MFhMsb8FS2ALonZE1-lJzl6pxTdgeO5W8lkIZ_ijChkQY7IahnIYU_iJn5QeUBlJ129CseB2M-l2lwHujs_QIXqXlevkbW-If-pjw8pg_tOx_qJIUsU_-vgYlBCOacWLUZ0J8e257gtTwEi8Sirx6QIQtCO1HOaVtQ\u0026h=gnmHH9kZ5_4FRAeYO_Y6dKgKXPoPZF4iQPZJxTo5gQU" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "7e18f45d-243d-47d2-83b9-9ab6af309c24" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856206930623\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3lu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Y2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ptX87XHDM-4JmIe_Qgns9pAqbXN4Lj_ZB74udsMyIvpv4zTiia5OJWAAHhlk5R-aOTd4Txh76K4otJ-9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "7e18f45d-243d-47d2-83b9-9ab6af309c24" ], + "x-ms-correlation-request-id": [ "7e18f45d-243d-47d2-83b9-9ab6af309c24" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053340Z:7e18f45d-243d-47d2-83b9-9ab6af309c24" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FBD0BDFBC18F4A46BE2F32AD8223F43B Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:39Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:39 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "990" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2b000452-0000-0800-0000-6715e7b40000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg\",\"name\":\"psdnssecurityrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:33:40.4430487Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:40.4430487Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856206930623\u0026c=MIIHpTCCBo2gAw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AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ptX87XHDM-4JmIe_Qgns9pAqbXN4Lj_ZB74udsMyIvpv4zTiia5OJWAAHhlk5R-aOTd4Txh76K4otJ-9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZ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5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ptX87XHDM-4JmIe_Qgns9pAqbXN4Lj_ZB74udsMyIvpv4zTiia5OJWAAHhlk5R-aOTd4Txh76K4otJ-9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "cddcf547-715b-45f5-8718-03f0a43bc9aa" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "15606442-6ab1-41fd-9435-0e2f4918d2e5" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "15606442-6ab1-41fd-9435-0e2f4918d2e5" ], + "x-ms-correlation-request-id": [ "15606442-6ab1-41fd-9435-0e2f4918d2e5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053345Z:15606442-6ab1-41fd-9435-0e2f4918d2e5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 93526F0420064333A2963E1A6D176D8E Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:33:45Z" ], + "Date": [ "Mon, 21 Oct 2024 05:33:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "514" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9\",\"startTime\":\"2024-10-21T05:33:40.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856206930623\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuw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9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9?api-version=2023-07-01-preview\u0026t=638650856206930623\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BB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TTEXMaD-5a81mGlzhZc09Q\u0026s=ptX87XHDM-4JmIe_Qgns9pAqbXN4Lj_ZB74udsMyIvpv4zTiia5OJWAAHhlk5R-aOTd4Txh76K4otJ-9a6e2Q8h4VArjTnHilHWSOxvMIdGtaTdse4Xeuveo0zBaIwAwOIsjJ9jqpB86X1WQAr5sFe5MTJVA1v3PRJZI_IwSSkN2vAc4W1CD7Mr1uuCHWeDV4u-8iv5A5HA3bR3sLBMvF695Lyfvb-ES9FGBlvNefLTBz7thW4_E1FUh0z1TjNSVDqRkduhBc29EANkRpqpcmwThcgburPDdVbbzDspXP5fIEodNNpk3wX4B1dkCDQOu4KMN6ZQS1BOAq_Smnmw3WQ\u0026h=CFm0etFpC8nSwUNtlmJbBKsNQCzInZpvYRimxi4e0aI", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "cddcf547-715b-45f5-8718-03f0a43bc9aa" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9c916e5a-3a45-4b1f-b598-c75b564dd910" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9c916e5a-3a45-4b1f-b598-c75b564dd910" ], + "x-ms-correlation-request-id": [ "9c916e5a-3a45-4b1f-b598-c75b564dd910" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053416Z:9c916e5a-3a45-4b1f-b598-c75b564dd910" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F9A787FEC79E4F848CB061EB1490F769 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:16Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjAyZGRmZjNiLWVmYTctNGQ2Yi05N2FiLWVhYmM0ODJjYzU5ZSJ9\",\"startTime\":\"2024-10-21T05:33:40.0000000Z\",\"endTime\":\"2024-10-21T05:33:47.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "cddcf547-715b-45f5-8718-03f0a43bc9aa" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "49ee8477-b32f-437c-84ec-cb20b69237c1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "49ee8477-b32f-437c-84ec-cb20b69237c1" ], + "x-ms-correlation-request-id": [ "49ee8477-b32f-437c-84ec-cb20b69237c1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053416Z:49ee8477-b32f-437c-84ec-cb20b69237c1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 33A81F01241A409A9B8534333EA235F1 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:16Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700720c-0000-0800-0000-6715e7bb0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg\",\"name\":\"psdnssecurityrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:33:40.4430487Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:40.4430487Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "27" ], + "x-ms-client-request-id": [ "b5038647-c517-465b-9d1c-f3d01767cb0f" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "329e8262-bb02-4b0f-92a6-f450ce34e8fe" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "329e8262-bb02-4b0f-92a6-f450ce34e8fe" ], + "x-ms-correlation-request-id": [ "329e8262-bb02-4b0f-92a6-f450ce34e8fe" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053417Z:329e8262-bb02-4b0f-92a6-f450ce34e8fe" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0C075FE773D049B084AFE21ED3F66D4F Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:16Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename0j9ujzg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700720c-0000-0800-0000-6715e7bb0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg\",\"name\":\"psdnssecurityrulename0j9ujzg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:33:40.4430487Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:33:40.4430487Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+12": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "ec758eb8-f896-465a-a579-a82c97d7f381" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9?api-version=2023-07-01-preview\u0026t=638650856583183487\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwY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Pg4t3kIrrXnEBIP_3hcSej-K0dwfR9wPkvWGYi-2fvYIpoJX18d5w1rmtWRpSTk8fKN_LiBvc1_rHUMPfKluYQx044y6w0i8vA\u0026h=RvAd6ho6vt8Z3PNYTAX6yJbwqE5YCFDLrY3RMWHDOR4" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "7f223bf8-a0c2-40af-b6bd-f17167eb3177" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9?api-version=2023-07-01-preview\u0026t=638650856583027172\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNT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MNLNmvUVUruVBf9dNTqgpfC8icgepH5LVD5K6K209PoPBLDCQyasf2kHWI8WqdHzcohcBUDOzs78gXvVBXmxMJUFNJ0Hkbn1ajRseZiT0UhyLmT8qhMip0NT-6EH-w1mGLhgKN8zivtJ1MTE2SWM7bnLGivAcGTTuIUIESj8lzOouRWjVe4YKGU05BfhqhgBqHKgcwCWIvkyblJ557Hs1oUuIkub8gVks_jwudTHSlp7fcVShdT5cIEVoVOHNgxXQA\u0026h=dmW4afTfilKZ-xBfypsRZINdReTXWps9FIun8bB2-hQ" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "7f223bf8-a0c2-40af-b6bd-f17167eb3177" ], + "x-ms-correlation-request-id": [ "7f223bf8-a0c2-40af-b6bd-f17167eb3177" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053418Z:7f223bf8-a0c2-40af-b6bd-f17167eb3177" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 33EB3D25FD394ACDB29088A4D5EFC05A Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:17Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:17 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQy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jAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7c4KDorm7zbKL4OI7VbSWr8d5xsTnoRKQC2C34BgLi8gEKY6ARkzmP6dI8alpFTR_IbqFabq9dygzk_ALG-pMNLNmvUVUruVBf9dNTqgpfC8icgepH5LVD5K6K209PoPBLDCQyasf2kHWI8WqdHzcohcBUDOzs78gXvVBXmxMJUFNJ0Hkbn1ajRseZiT0UhyLmT8qhMip0NT-6EH-w1mGLhgKN8zivtJ1MTE2SWM7bnLGivAcGTTuIUIESj8lzOouRWjVe4YKGU05BfhqhgBqHKgcwCWIvkyblJ557Hs1oUuIkub8gVks_jwudTHSlp7fcVShdT5cIEVoVOHNgxXQA\u0026h=dmW4afTfilKZ-xBfypsRZINdReTXWps9FIun8bB2-hQ+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoi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GCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=7c4KDorm7zbKL4OI7VbSWr8d5xsTnoRKQC2C34BgLi8gEKY6ARkzmP6dI8alpFTR_IbqFabq9dygzk_ALG-pMNLNmvUVUruVBf9dNTqgpfC8icgepH5LVD5K6K209PoPBLDCQyasf2kHWI8WqdHzcohcBUDOzs78gXvVBXmxMJUFNJ0Hkbn1ajRseZiT0UhyLmT8qhMip0NT-6EH-w1mGLhgKN8zivtJ1MTE2SWM7bnLGivAcGTTuIUIESj8lzOouRWjVe4YKGU05BfhqhgBqHKgcwCWIvkyblJ557Hs1oUuIkub8gVks_jwudTHSlp7fcVShdT5cIEVoVOHNgxXQA\u0026h=dmW4afTfilKZ-xBfypsRZINdReTXWps9FIun8bB2-hQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "29" ], + "x-ms-client-request-id": [ "ec758eb8-f896-465a-a579-a82c97d7f381" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "116b1d01-d28d-4d00-89f0-72b6a1cf8e10" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "116b1d01-d28d-4d00-89f0-72b6a1cf8e10" ], + "x-ms-correlation-request-id": [ "116b1d01-d28d-4d00-89f0-72b6a1cf8e10" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053423Z:116b1d01-d28d-4d00-89f0-72b6a1cf8e10" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4F30D1E6457549E19A0C1EC4D8E98BB8 Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:23Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9\",\"startTime\":\"2024-10-21T05:34:18.0000000Z\",\"endTime\":\"2024-10-21T05:34:19.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9?api-version=2023-07-01-preview\u0026t=638650856583183487\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5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DHTAZ-bY7UuPsRuGxCVrq_Eo6tgCP-LbDNG12J5oOOmpTd8mLNIcgmdMAq17dRGdgEcQOSrsF-W0gNMnEskf3_xfqlEKxLb_XVuRJpQxZnxge6vEpzEgjEd3g5xMOKFv4GlrfgKEFXZrjeNXQqCH_MfxvVXrKRSvaIgJA5Xh247usuT6v1dSB4IbhUdYLLHxGuIkncVwfr11xS7ivt_dwDNxJhrUawPlybVyRUqiUR5TVf_u_Pg4t3kIrrXnEBIP_3hcSej-K0dwfR9wPkvWGYi-2fvYIpoJX18d5w1rmtWRpSTk8fKN_LiBvc1_rHUMPfKluYQx044y6w0i8vA\u0026h=RvAd6ho6vt8Z3PNYTAX6yJbwqE5YCFDLrY3RMWHDOR4+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6IjZlMmZmMjM1LThjMmMtNGJhMi05OTE5LTk3ODQyNzE5NDNiMiJ9?api-version=2023-07-01-preview\u0026t=638650856583183487\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_Wb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ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=5T3DHTAZ-bY7UuPsRuGxCVrq_Eo6tgCP-LbDNG12J5oOOmpTd8mLNIcgmdMAq17dRGdgEcQOSrsF-W0gNMnEskf3_xfqlEKxLb_XVuRJpQxZnxge6vEpzEgjEd3g5xMOKFv4GlrfgKEFXZrjeNXQqCH_MfxvVXrKRSvaIgJA5Xh247usuT6v1dSB4IbhUdYLLHxGuIkncVwfr11xS7ivt_dwDNxJhrUawPlybVyRUqiUR5TVf_u_Pg4t3kIrrXnEBIP_3hcSej-K0dwfR9wPkvWGYi-2fvYIpoJX18d5w1rmtWRpSTk8fKN_LiBvc1_rHUMPfKluYQx044y6w0i8vA\u0026h=RvAd6ho6vt8Z3PNYTAX6yJbwqE5YCFDLrY3RMWHDOR4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "ec758eb8-f896-465a-a579-a82c97d7f381" ], + "CommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyDnsSecurityRule_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "19e0d9ec-e100-49a1-b7be-89fe2f951b02" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "19e0d9ec-e100-49a1-b7be-89fe2f951b02" ], + "x-ms-correlation-request-id": [ "19e0d9ec-e100-49a1-b7be-89fe2f951b02" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053424Z:19e0d9ec-e100-49a1-b7be-89fe2f951b02" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A97EA27612E341E1BEF03EDF660527BD Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:23Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:23 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Delete a DNS security rule via identity, expected DNS security rule deleted+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "31" ], + "x-ms-client-request-id": [ "7238be96-8b05-432d-b480-f88b9e8a775d" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "ffc3c349-6966-4386-852d-5e1fc9c403c5" ], + "x-ms-correlation-request-id": [ "ffc3c349-6966-4386-852d-5e1fc9c403c5" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053424Z:ffc3c349-6966-4386-852d-5e1fc9c403c5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 52951C8AE5AD4E19AD244A93CE75C66E Ref B: CO6AA3150219027 Ref C: 2024-10-21T05:34:24Z" ], + "Date": [ "Mon, 21 Oct 2024 05:34:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "324" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename0j9ujzg/dnsSecurityRules/psdnssecurityrulename0j9ujzg\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..b481560947d8 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 @@ -0,0 +1,53 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverPolicyDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverPolicyDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverPolicyDnsSecurityRule' { + It 'Delete a DNS security rule by name, expected DNS security rule deleted' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename8y8cdzg"; + $dnsSecurityRuleName = "psdnssecurityrulename8y8cdzg"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename8y8cdzg"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT + Remove-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + {Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName } | Should -Throw + } + + It 'Delete a DNS security rule via identity, expected DNS security rule deleted' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename0j9ujzg"; + $dnsSecurityRuleName = "psdnssecurityrulename0j9ujzg"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename0j9ujzg"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT + Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName | Remove-AzDnsResolverPolicyDnsSecurityRule + + # ASSERT + {Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName } | Should -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Recording.json new file mode 100644 index 000000000000..c93d6380c6ac --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Recording.json @@ -0,0 +1,982 @@ +{ + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "ad142a37-ad42-4fd6-951e-b86c650120a1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=?api-version=2023-07-01-preview\u0026t=638650874053722463\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4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mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=EaxOpXBhyttFpxY2F6h7vkqeFpZbsZp-e4P3wtVVUoIR1EngJUkPCM5mkISNNg-QudA4S8IJhG3hPqD3Fl9BBN5-CRit3YFBE_xUAooNNgH0uKhwVFunhkmqQ5HFYT3d1a23GSXuWm0SO24V3mDoPOcu5YI41lYb4k2h-V8Ea1c-rnLRs49ff-ZRRAg4VToDYXX4Wb4AOHCP5DFYz0DVUWhz1SZmvXCKhR4-tVl6nd7WGnX-5eLNIXXeMwmG-JvL4FCR6RY-z9pl5lrM8ur1yENLKRJwB0aCU7TP3QuzPlqjzZ785fQZqqfwQ2ewEQi7HDFDgISkl9Of-pbxN9Q-FA\u0026h=1Bmq4qAs_Z7n0cFAwGfdNci-sVUQIUHTTr4Vq8U2GtE" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "ad142a37-ad42-4fd6-951e-b86c650120a1" ], + "x-ms-correlation-request-id": [ "ad142a37-ad42-4fd6-951e-b86c650120a1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060325Z:ad142a37-ad42-4fd6-951e-b86c650120a1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: A476FE77980D4BC1B01136C0794D2E5F Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:23Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"7401596e-0000-0800-0000-6715eead0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa\",\"name\":\"psdnsresolverpolicyforlinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:03:25.1379211Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:03:25.1379211Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=?api-version=2023-07-01-preview\u0026t=638650874053722463\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aW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Xhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=EaxOpXBhyttFpxY2F6h7vkqeFpZbsZp-e4P3wtVVUoIR1EngJUkPCM5mkISNNg-QudA4S8IJhG3hPqD3Fl9BBN5-CRit3YFBE_xUAooNNgH0uKhwVFunhkmqQ5HFYT3d1a23GSXuWm0SO24V3mDoPOcu5YI41lYb4k2h-V8Ea1c-rnLRs49ff-ZRRAg4VToDYXX4Wb4AOHCP5DFYz0DVUWhz1SZmvXCKhR4-tVl6nd7WGnX-5eLNIXXeMwmG-JvL4FCR6RY-z9pl5lrM8ur1yENLKRJwB0aCU7TP3QuzPlqjzZ785fQZqqfwQ2ewEQi7HDFDgISkl9Of-pbxN9Q-FA\u0026h=1Bmq4qAs_Z7n0cFAwGfdNci-sVUQIUHTTr4Vq8U2GtE+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=?api-version=2023-07-01-preview\u0026t=638650874053722463\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTU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AFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=EaxOpXBhyttFpxY2F6h7vkqeFpZbsZp-e4P3wtVVUoIR1EngJUkPCM5mkISNNg-QudA4S8IJhG3hPqD3Fl9BBN5-CRit3YFBE_xUAooNNgH0uKhwVFunhkmqQ5HFYT3d1a23GSXuWm0SO24V3mDoPOcu5YI41lYb4k2h-V8Ea1c-rnLRs49ff-ZRRAg4VToDYXX4Wb4AOHCP5DFYz0DVUWhz1SZmvXCKhR4-tVl6nd7WGnX-5eLNIXXeMwmG-JvL4FCR6RY-z9pl5lrM8ur1yENLKRJwB0aCU7TP3QuzPlqjzZ785fQZqqfwQ2ewEQi7HDFDgISkl9Of-pbxN9Q-FA\u0026h=1Bmq4qAs_Z7n0cFAwGfdNci-sVUQIUHTTr4Vq8U2GtE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "9810f2fb-2361-4225-a6f9-523e03d6977e" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "4f14b205-86e0-4ebb-b65b-07e5b2cb7f80" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "4f14b205-86e0-4ebb-b65b-07e5b2cb7f80" ], + "x-ms-correlation-request-id": [ "4f14b205-86e0-4ebb-b65b-07e5b2cb7f80" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060330Z:4f14b205-86e0-4ebb-b65b-07e5b2cb7f80" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0E3C34A9D3754E7CBD1C269CB2F1CC2C Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:30Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZjFlNGJhYzEtNDE2YS00M2E2LWI3OGEtNWQ0NDNhNjNhOTA3In0=\",\"startTime\":\"2024-10-21T06:03:25.0000000Z\",\"endTime\":\"2024-10-21T06:03:28.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "9810f2fb-2361-4225-a6f9-523e03d6977e" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "716e121d-c123-4643-b936-ba8ad118b03c" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "716e121d-c123-4643-b936-ba8ad118b03c" ], + "x-ms-correlation-request-id": [ "716e121d-c123-4643-b936-ba8ad118b03c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060331Z:716e121d-c123-4643-b936-ba8ad118b03c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B48AF6267C4941F387E8D58867A0A0ED Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:30Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:30 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d90c2581-d528-43a6-889d-68006d59baf4\"},\"etag\":\"\\\"2c00503b-0000-0800-0000-6715eeb00000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa\",\"name\":\"psdnsresolverpolicyforlinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:03:25.1379211Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:03:25.1379211Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "279" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "5a9761b4-cab0-4585-9dfd-55b554011bc8" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiy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QksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=RDwlfgsMdp5ebdb-kzN8af-uLVw6qC-ZW4RSRrEGlDPW3m7eNBm_1ck9_05DRXKcMMRHLPZ-K6E4kgbjKPsRyPY8bWVmD_prhAZJ0z-F8nhggEFmVewxmjxCkq4oMSgWzAaOEm4xpjVS333YWLPnuBi1VeFQDyx-XwsHcdbg2kxAACOYrslLWC_aK01ATZdcjGuQwMRs_Omd0Zvr5EmZ1uKYIrgi5AKC61SntlYM7L5NEMSWaSv1WNTJUT3f0Ufvb4NiVUf_EvYXm8yEdwld6RD1XqzQCotMzdplLire97II-FvH9Cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "5a9761b4-cab0-4585-9dfd-55b554011bc8" ], + "x-ms-correlation-request-id": [ "5a9761b4-cab0-4585-9dfd-55b554011bc8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060332Z:5a9761b4-cab0-4585-9dfd-55b554011bc8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B53BEE1347F04C75AB6D88E89B45AC1B Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:31Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "835" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2c00b43b-0000-0800-0000-6715eeb40000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:03:32.481867Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:03:32.481867Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmd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zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=RDwlfgsMdp5ebdb-kzN8af-uLVw6qC-ZW4RSRrEGlDPW3m7eNBm_1ck9_05DRXKcMMRHLPZ-K6E4kgbjKPsRyPY8bWVmD_prhAZJ0z-F8nhggEFmVewxmjxCkq4oMSgWzAaOEm4xpjVS333YWLPnuBi1VeFQDyx-XwsHcdbg2kxAACOYrslLWC_aK01ATZdcjGuQwMRs_Omd0Zvr5EmZ1uKYIrgi5AKC61SntlYM7L5NEMSWaSv1WNTJUT3f0Ufvb4NiVUf_EvYXm8yEdwld6RD1XqzQCotMzdplLire97II-FvH9Cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9B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EBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=RDwlfgsMdp5ebdb-kzN8af-uLVw6qC-ZW4RSRrEGlDPW3m7eNBm_1ck9_05DRXKcMMRHLPZ-K6E4kgbjKPsRyPY8bWVmD_prhAZJ0z-F8nhggEFmVewxmjxCkq4oMSgWzAaOEm4xpjVS333YWLPnuBi1VeFQDyx-XwsHcdbg2kxAACOYrslLWC_aK01ATZdcjGuQwMRs_Omd0Zvr5EmZ1uKYIrgi5AKC61SntlYM7L5NEMSWaSv1WNTJUT3f0Ufvb4NiVUf_EvYXm8yEdwld6RD1XqzQCotMzdplLire97II-FvH9Cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "ae44dbcd-b6bb-47bc-86d3-8667a7597216" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a279a35d-20b8-4083-82be-db7a2d9f7869" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a279a35d-20b8-4083-82be-db7a2d9f7869" ], + "x-ms-correlation-request-id": [ "a279a35d-20b8-4083-82be-db7a2d9f7869" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060337Z:a279a35d-20b8-4083-82be-db7a2d9f7869" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C149032A1C5C42B3AD732F260EC0BFB2 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:03:37Z" ], + "Date": [ "Mon, 21 Oct 2024 06:03:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "530" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9\",\"startTime\":\"2024-10-21T06:03:32.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGC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cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9?api-version=2023-07-01-preview\u0026t=638650874126849931\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKps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uQwMRs_Omd0Zvr5EmZ1uKYIrgi5AKC61SntlYM7L5NEMSWaSv1WNTJUT3f0Ufvb4NiVUf_EvYXm8yEdwld6RD1XqzQCotMzdplLire97II-FvH9Cdva-hqzgM57fA79vdxmzaJrbHhFKFabLTciA\u0026h=fLp4Uwe5kB6WJgiCiBqWwEzlqq99kbY4dJkOIQZmvSA", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "ae44dbcd-b6bb-47bc-86d3-8667a7597216" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8df41a11-7606-4e4f-b580-9203a8f32e2e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8df41a11-7606-4e4f-b580-9203a8f32e2e" ], + "x-ms-correlation-request-id": [ "8df41a11-7606-4e4f-b580-9203a8f32e2e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060408Z:8df41a11-7606-4e4f-b580-9203a8f32e2e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7548A4D940344F709EA1A915AFDA0684 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:08Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:07 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjI3MTRhNWI4LTYzNjQtNGQxNy05YmNiLWUxNTAxYTYwNzI3MSJ9\",\"startTime\":\"2024-10-21T06:03:32.0000000Z\",\"endTime\":\"2024-10-21T06:03:39.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "ae44dbcd-b6bb-47bc-86d3-8667a7597216" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e20c44ea-4257-4f45-9508-752e59f73463" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e20c44ea-4257-4f45-9508-752e59f73463" ], + "x-ms-correlation-request-id": [ "e20c44ea-4257-4f45-9508-752e59f73463" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060408Z:e20c44ea-4257-4f45-9508-752e59f73463" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F128BC0A3375443798EF424FDF24EA22 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:08Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "836" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname7sadjfa\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c00763c-0000-0800-0000-6715eebb0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\",\"name\":\"psdnsresolverpolicylinkname7sadjfa\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:03:32.481867Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:03:32.481867Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "2ccc1c73-9dac-4de0-b863-dc7cd5381906" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501544792\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBggrBgEFBQcBAQSCAb0wggG5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"x-ms-activity-id": [ "27338a51-9d3e-4fc3-b200-09437f7da494" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501388503\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwE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A-4ALaJh31aN9yMNhn0XPwNf93HDUAfuzqc8O-oXb5RqoFg\u0026h=6EyNOZwokp1748uWcKBJx4YiDk6dUpD3gIUqOLKxRzY" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "27338a51-9d3e-4fc3-b200-09437f7da494" ], + "x-ms-correlation-request-id": [ "27338a51-9d3e-4fc3-b200-09437f7da494" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060410Z:27338a51-9d3e-4fc3-b200-09437f7da494" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0193FAA089A84DE59CF5A7D911AFA55E Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:09Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:09 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501388503\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHh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ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=eRDbl4zLIUZ7Ao89EJkfXIS2i4LZNBu3nAEipci0ev_1GBT9R6sUiNBcHfD6MW42lS7_agYxgku8JSts_jT8yZskaf7OWPhABnhgHAz4walJDJGaej1o17-zx-I-YHH0VNqq7lcDql3EH9_tJAx9sx0pks-8Xy94IyWqZskUhFo9nQamw-UBmksj-NsSdMQaw7OuCDnxVbxO-5KVmO2LkjzSBbVNxh5YPCkqwZHUGZDRoJlZLIVjiJKFHuuSKW7Qds0y1qaWqIABP-sWy0mSkto_MoHKe44Ad17XRKJA-4ALaJh31aN9yMNhn0XPwNf93HDUAfuzqc8O-oXb5RqoFg\u0026h=6EyNOZwokp1748uWcKBJx4YiDk6dUpD3gIUqOLKxRzY+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501388503\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwE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x3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=eRDbl4zLIUZ7Ao89EJkfXIS2i4LZNBu3nAEipci0ev_1GBT9R6sUiNBcHfD6MW42lS7_agYxgku8JSts_jT8yZskaf7OWPhABnhgHAz4walJDJGaej1o17-zx-I-YHH0VNqq7lcDql3EH9_tJAx9sx0pks-8Xy94IyWqZskUhFo9nQamw-UBmksj-NsSdMQaw7OuCDnxVbxO-5KVmO2LkjzSBbVNxh5YPCkqwZHUGZDRoJlZLIVjiJKFHuuSKW7Qds0y1qaWqIABP-sWy0mSkto_MoHKe44Ad17XRKJA-4ALaJh31aN9yMNhn0XPwNf93HDUAfuzqc8O-oXb5RqoFg\u0026h=6EyNOZwokp1748uWcKBJx4YiDk6dUpD3gIUqOLKxRzY", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "2ccc1c73-9dac-4de0-b863-dc7cd5381906" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "96f160d3-adc8-4f7f-9431-193577cfe713" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "96f160d3-adc8-4f7f-9431-193577cfe713" ], + "x-ms-correlation-request-id": [ "96f160d3-adc8-4f7f-9431-193577cfe713" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060415Z:96f160d3-adc8-4f7f-9431-193577cfe713" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E6743BD458B145B094FAB5902487AFE7 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:15Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9\",\"startTime\":\"2024-10-21T06:04:10.0000000Z\",\"endTime\":\"2024-10-21T06:04:11.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501544792\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDA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DDWXjf4T9AG2w0tj2XFtTgA\u0026h=cZh2oUxEMCxasbyV8Gd27lzgiGazCNSzhGmWiLW5Sg4+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjBmYWQwMWI1LWY1YTQtNGE3Yy05ZmYxLWU2MzFjZmQ3YWI4NyJ9?api-version=2023-07-01-preview\u0026t=638650874501544792\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRw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QyrH5whwEyR2wSTMxgFQpMwuWu3obOsAkXd5l2zB-YiueDPHb--WMKg5ktMv3lv5ssX11CQAEZLY8RIpDDWXjf4T9AG2w0tj2XFtTgA\u0026h=cZh2oUxEMCxasbyV8Gd27lzgiGazCNSzhGmWiLW5Sg4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "2ccc1c73-9dac-4de0-b863-dc7cd5381906" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_Delete" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ef366f60-2ca1-4513-ac3d-7748236ab494" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ef366f60-2ca1-4513-ac3d-7748236ab494" ], + "x-ms-correlation-request-id": [ "ef366f60-2ca1-4513-ac3d-7748236ab494" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060415Z:ef366f60-2ca1-4513-ac3d-7748236ab494" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 911E6F97865A4E0A81BFA481D0CE2061 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:15Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:14 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "12" ], + "x-ms-client-request-id": [ "34c0af7d-5d29-4320-aeb8-d0572fe8fff4" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-failure-cause": [ "gateway" ], + "x-ms-request-id": [ "35af6578-1d18-4053-8cf6-3f967730a55c" ], + "x-ms-correlation-request-id": [ "35af6578-1d18-4053-8cf6-3f967730a55c" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060416Z:35af6578-1d18-4053-8cf6-3f967730a55c" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FB764D92143748BAB210999B32F5C7B3 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:16Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "333" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource \u0027Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname7sadjfa/virtualNetworkLinks/psdnsresolverpolicylinkname7sadjfa\u0027 under resource group \u0027powershell-test-rg-debug-remove\u0027 was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "1b9f3922-6536-41b6-8bd3-981f2acd633e" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=?api-version=2023-07-01-preview\u0026t=638650874628026037\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6d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O6sc3Wsr5-lKML14SO-7Y0Tg" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "1b9f3922-6536-41b6-8bd3-981f2acd633e" ], + "x-ms-correlation-request-id": [ "1b9f3922-6536-41b6-8bd3-981f2acd633e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060422Z:1b9f3922-6536-41b6-8bd3-981f2acd633e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CF76B0D030F14817A5048CAFFAB94971 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:21Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"7401a880-0000-0800-0000-6715eee60000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35\",\"name\":\"psdnsresolverpolicyforlinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:04:22.5994623Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:04:22.5994623Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJP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gYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=NN6LAU4Yh4Lx0iUNhWCfpIVs6Uj6I977qfbVSKE_FwL_7i73Gt9azXX5N7O3FVxhiawUF7P2MtoammgSSDQAgq5AA3mCqJmqtbvr6l7qE4cTCWhP2KVHOjn9cla8xZxlx2SUIZb_CFslXcpnXAYDNBbfaJOKfVebjsKaQkb9oKKHC6HKRMP9Q4ayPgf9oJKZAn494ky-k5N8U1t5OEEnmcNpHFnn5YPuToxxkgEuTYbM8h8aj18fi4AEyioslAlpDMb09i5tsYVc10xhFMOmq3ioQgv_cz069H3g_j5EXPdg2C0HP1Rr8q6xgEZR5ywYLr71Aqm0hND7lc6Hr0M-NQ\u0026h=a4pJjtCe7xo5ANfqWFKO6sc3Wsr5-lKML14SO-7Y0Tg+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=?api-version=2023-07-01-preview\u0026t=638650874628026037\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHLBgg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Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "d0bf172b-96f6-472d-841f-0935d338e297" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "98e336ff-190b-401d-b008-89417f3a27e7" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "98e336ff-190b-401d-b008-89417f3a27e7" ], + "x-ms-correlation-request-id": [ "98e336ff-190b-401d-b008-89417f3a27e7" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060428Z:98e336ff-190b-401d-b008-89417f3a27e7" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9F90453B24AF436B95F0F61BC82BDC3D Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:27Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=\",\"startTime\":\"2024-10-21T06:04:22.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=?api-version=2023-07-01-preview\u0026t=638650874628026037\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhA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iawUF7P2MtoammgSSDQAgq5AA3mCqJmqtbvr6l7qE4cTCWhP2KVHOjn9cla8xZxlx2SUIZb_CFslXcpnXAYDNBbfaJOKfVebjsKaQkb9oKKHC6HKRMP9Q4ayPgf9oJKZAn494ky-k5N8U1t5OEEnmcNpHFnn5YPuToxxkgEuTYbM8h8aj18fi4AEyioslAlpDMb09i5tsYVc10xhFMOmq3ioQgv_cz069H3g_j5EXPdg2C0HP1Rr8q6xgEZR5ywYLr71Aqm0hND7lc6Hr0M-NQ\u0026h=a4pJjtCe7xo5ANfqWFKO6sc3Wsr5-lKML14SO-7Y0Tg+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=?api-version=2023-07-01-preview\u0026t=638650874628026037\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFU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NN6LAU4Yh4Lx0iUNhWCfpIVs6Uj6I977qfbVSKE_FwL_7i73Gt9azXX5N7O3FVxhiawUF7P2MtoammgSSDQAgq5AA3mCqJmqtbvr6l7qE4cTCWhP2KVHOjn9cla8xZxlx2SUIZb_CFslXcpnXAYDNBbfaJOKfVebjsKaQkb9oKKHC6HKRMP9Q4ayPgf9oJKZAn494ky-k5N8U1t5OEEnmcNpHFnn5YPuToxxkgEuTYbM8h8aj18fi4AEyioslAlpDMb09i5tsYVc10xhFMOmq3ioQgv_cz069H3g_j5EXPdg2C0HP1Rr8q6xgEZR5ywYLr71Aqm0hND7lc6Hr0M-NQ\u0026h=a4pJjtCe7xo5ANfqWFKO6sc3Wsr5-lKML14SO-7Y0Tg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "d0bf172b-96f6-472d-841f-0935d338e297" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3578e734-5e9b-4035-a615-a084f2050ab2" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3578e734-5e9b-4035-a615-a084f2050ab2" ], + "x-ms-correlation-request-id": [ "3578e734-5e9b-4035-a615-a084f2050ab2" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060458Z:3578e734-5e9b-4035-a615-a084f2050ab2" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 43183FD8F893447A995A19232FAB308A Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:58Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiM2Y4N2M5MmUtZTM3ZC00MWU1LThhMDctYjJjYmExM2I5MzgxIn0=\",\"startTime\":\"2024-10-21T06:04:22.0000000Z\",\"endTime\":\"2024-10-21T06:04:28.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "d0bf172b-96f6-472d-841f-0935d338e297" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3e72874b-27c8-4dab-9958-bd0f258f1d13" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3e72874b-27c8-4dab-9958-bd0f258f1d13" ], + "x-ms-correlation-request-id": [ "3e72874b-27c8-4dab-9958-bd0f258f1d13" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060458Z:3e72874b-27c8-4dab-9958-bd0f258f1d13" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1F076CFBCA5F4596A1651FCE3AD79506 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:58Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:58 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"90e56c19-95e3-4a9a-bb13-59de918ef11a\"},\"etag\":\"\\\"2c000e44-0000-0800-0000-6715eeec0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35\",\"name\":\"psdnsresolverpolicyforlinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T06:04:22.5994623Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:04:22.5994623Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname353hj35\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "279" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "bd9e8dae-5c0c-4d8c-ae7e-8f40ca123723" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9?api-version=2023-07-01-preview\u0026t=638650875004160423\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBB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BQjgjXLldNMuWscJthnxrWRK2X1CtvzED9Zw9c2I8HlUfhJ2PFrWha_8CcJ129dCqZcpeFdMH8Z5YflyJ7JRmyEY41PBL7RQQ\u0026h=SOrD2fKzKSAsPlUOG3LdT3-dLUYIpc9Q1JYPCElIWpQ" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "bd9e8dae-5c0c-4d8c-ae7e-8f40ca123723" ], + "x-ms-correlation-request-id": [ "bd9e8dae-5c0c-4d8c-ae7e-8f40ca123723" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060500Z:bd9e8dae-5c0c-4d8c-ae7e-8f40ca123723" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B01DDDD3BF7347038DD445534CECAD5D Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:04:59Z" ], + "Date": [ "Mon, 21 Oct 2024 06:04:59 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "837" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname353hj35\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"2c00de48-0000-0800-0000-6715ef0c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35\",\"name\":\"psdnsresolverpolicylinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:05:00.1035399Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:05:00.1035399Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9?api-version=2023-07-01-preview\u0026t=638650875004160423\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJ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N6JSk4m1MDLuAkUP_kzzFsMuEvgWJNQPv_AL9G2eH9aDaDBE4oCuP1XNGoLv9vUiE2Q6fauD_q08EQ7AycXNjb2GAbiUjdYvv-9yNlUeH3dWSKb0XIx6tBQjgjXLldNMuWscJthnxrWRK2X1CtvzED9Zw9c2I8HlUfhJ2PFrWha_8CcJ129dCqZcpeFdMH8Z5YflyJ7JRmyEY41PBL7RQQ\u0026h=SOrD2fKzKSAsPlUOG3LdT3-dLUYIpc9Q1JYPCElIWpQ+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9?api-version=2023-07-01-preview\u0026t=638650875004160423\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kaz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pKX7G43AA9xBKNd2F4UahH-LqauNnuChEfs7YOg9ElEGN6pVMIFLwP0-J5Vsz_wXK-qwLdVK0R5kCXzow-mv7Giaza4OUNgZ4bWopO0viAZXBxjnVsEXd0LYKN6JSk4m1MDLuAkUP_kzzFsMuEvgWJNQPv_AL9G2eH9aDaDBE4oCuP1XNGoLv9vUiE2Q6fauD_q08EQ7AycXNjb2GAbiUjdYvv-9yNlUeH3dWSKb0XIx6tBQjgjXLldNMuWscJthnxrWRK2X1CtvzED9Zw9c2I8HlUfhJ2PFrWha_8CcJ129dCqZcpeFdMH8Z5YflyJ7JRmyEY41PBL7RQQ\u0026h=SOrD2fKzKSAsPlUOG3LdT3-dLUYIpc9Q1JYPCElIWpQ", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "18" ], + "x-ms-client-request-id": [ "541e5ce8-d934-47cc-88c5-91c2ccec7bb8" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f65c683f-d36d-4521-930a-69d386aca59a" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f65c683f-d36d-4521-930a-69d386aca59a" ], + "x-ms-correlation-request-id": [ "f65c683f-d36d-4521-930a-69d386aca59a" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060505Z:f65c683f-d36d-4521-930a-69d386aca59a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 259406FAC3D843EEA4B64334D6BC50D3 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:05Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6ImIxOTdlZjg5LWQ4NDUtNDNkNy05MjkyLWNiNTRiYTIwZDBjNCJ9\",\"startTime\":\"2024-10-21T06:05:00.0000000Z\",\"endTime\":\"2024-10-21T06:05:02.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "19" ], + "x-ms-client-request-id": [ "541e5ce8-d934-47cc-88c5-91c2ccec7bb8" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "8b04df55-7bce-4c16-9de1-bf3b0127927e" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "8b04df55-7bce-4c16-9de1-bf3b0127927e" ], + "x-ms-correlation-request-id": [ "8b04df55-7bce-4c16-9de1-bf3b0127927e" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060505Z:8b04df55-7bce-4c16-9de1-bf3b0127927e" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E618467FD82D4D77ABA6843B231B046B Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:05Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:05 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "838" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname353hj35\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c004e49-0000-0800-0000-6715ef0e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35\",\"name\":\"psdnsresolverpolicylinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:05:00.1035399Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:05:00.1035399Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "20" ], + "x-ms-client-request-id": [ "28045fcd-0ca0-43da-87d3-82f554f25b57" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "fe6d1357-802a-497b-aeeb-7124778b6d89" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "fe6d1357-802a-497b-aeeb-7124778b6d89" ], + "x-ms-correlation-request-id": [ "fe6d1357-802a-497b-aeeb-7124778b6d89" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060507Z:fe6d1357-802a-497b-aeeb-7124778b6d89" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7812C9A3A6E34927AAC1D6A3167DADA2 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:06Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:06 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "838" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinkname353hj35\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2c004e49-0000-0800-0000-6715ef0e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35\",\"name\":\"psdnsresolverpolicylinkname353hj35\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-10-21T06:05:00.1035399Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T06:05:00.1035399Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$DELETE+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+9": { + "Request": { + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "21" ], + "x-ms-client-request-id": [ "b1e9a4f3-04df-48d7-ba97-0968beaeca19" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXR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IwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=zy9nTJRPbnxJs5wyZZfbEXHQcrPhGp5lbAhhECP5R5XL3XN52cyGdc_y8KEYQfgW_YSy8RlCwVXp-4wWRSwcXl0rx4vGkc_hCf837OeTvq0MvrBl29wb5l3l_jEDIBhENpGANL7XpnDcTKSGxiq82XX8GgQiYfQTTEYYULB-Nf0xJV9wWJh7m1YoNBnQQQk9kRa_yqvYzLa3mIfjF2oDGiz8bn4F-8zQGcTWcCBLcnaOGGLPBnYcgpK1PRqUKLSqHlkebKfJ7VyCZxm8Dy7ltzGv717pqR9zti_F9WgHf6GridbQa2Ui9Ohj7Xr1S_ov86APvGh1RRWW1OkQNcZ8iw\u0026h=53ek2z2s0_RrU-9whyEfBszrO7oFOoQEClVkBxkjfAM" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "2de282dc-8fc8-41b6-95ee-0259639daf01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085067607\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVt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4RIb4y0PnL5mTjIDiAFINtMEA\u0026h=8IJ-TkuR0R91LZ5mwI8xm2BUJPBvAdNaMuKlQz4zf24" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "2de282dc-8fc8-41b6-95ee-0259639daf01" ], + "x-ms-correlation-request-id": [ "2de282dc-8fc8-41b6-95ee-0259639daf01" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060508Z:2de282dc-8fc8-41b6-95ee-0259639daf01" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2604A34EC23C43DDB812C7DFEFF31ED6 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:07Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:07 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ], + "Content-Length": [ "0" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085067607\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2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c9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=UwYqKUbkiJ3gCHzxd0IRdLmZllUuhHmmikUSuILtfFx4laOmd9TGAvz4jUlfJIzsCJD5ab0Xjz8N9eY8AGifvEUdLn-LyttsELjIwmYH8MoO1Y31eM33IMabOzDK95FJ9iE3cgLi6llsl1jVvXiIYsrL3lH4Oz0ZsOhbCyNNkyW7TJ2wsxMBSrbnotxs-jkno1bT4WHR7qX4a-nCZkK1XFFZo57Pt5d8LSJioY4HgdVW1kDjAZfTLIoQHELzvwTL6lBSnNLZ_wjKsVOfOyWqn7QskJ3i7srER1mToFVEbVZIkPJxOvP1FIe3yBbjC4RIb4y0PnL5mTjIDiAFINtMEA\u0026h=8IJ-TkuR0R91LZ5mwI8xm2BUJPBvAdNaMuKlQz4zf24+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085067607\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w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ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=UwYqKUbkiJ3gCHzxd0IRdLmZllUuhHmmikUSuILtfFx4laOmd9TGAvz4jUlfJIzsCJD5ab0Xjz8N9eY8AGifvEUdLn-LyttsELjIwmYH8MoO1Y31eM33IMabOzDK95FJ9iE3cgLi6llsl1jVvXiIYsrL3lH4Oz0ZsOhbCyNNkyW7TJ2wsxMBSrbnotxs-jkno1bT4WHR7qX4a-nCZkK1XFFZo57Pt5d8LSJioY4HgdVW1kDjAZfTLIoQHELzvwTL6lBSnNLZ_wjKsVOfOyWqn7QskJ3i7srER1mToFVEbVZIkPJxOvP1FIe3yBbjC4RIb4y0PnL5mTjIDiAFINtMEA\u0026h=8IJ-TkuR0R91LZ5mwI8xm2BUJPBvAdNaMuKlQz4zf24", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "b1e9a4f3-04df-48d7-ba97-0968beaeca19" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a66ccf53-2c18-4327-9dbc-1cdadfca1374" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a66ccf53-2c18-4327-9dbc-1cdadfca1374" ], + "x-ms-correlation-request-id": [ "a66ccf53-2c18-4327-9dbc-1cdadfca1374" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060513Z:a66ccf53-2c18-4327-9dbc-1cdadfca1374" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7545A103AD0940819E7396283211B15A Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:13Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:12 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9\",\"startTime\":\"2024-10-21T06:05:08.0000000Z\",\"endTime\":\"2024-10-21T06:05:09.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085223852\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN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9wWJh7m1YoNBnQQQk9kRa_yqvYzLa3mIfjF2oDGiz8bn4F-8zQGcTWcCBLcnaOGGLPBnYcgpK1PRqUKLSqHlkebKfJ7VyCZxm8Dy7ltzGv717pqR9zti_F9WgHf6GridbQa2Ui9Ohj7Xr1S_ov86APvGh1RRWW1OkQNcZ8iw\u0026h=53ek2z2s0_RrU-9whyEfBszrO7oFOoQEClVkBxkjfAM+11": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjMyYzg2YjIzLTUwYjMtNDQ3MS05YjQ2LTFjNzBlMjljOTQxOCJ9?api-version=2023-07-01-preview\u0026t=638650875085223852\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjott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QfgW_YSy8RlCwVXp-4wWRSwcXl0rx4vGkc_hCf837OeTvq0MvrBl29wb5l3l_jEDIBhENpGANL7XpnDcTKSGxiq82XX8GgQiYfQTTEYYULB-Nf0xJV9wWJh7m1YoNBnQQQk9kRa_yqvYzLa3mIfjF2oDGiz8bn4F-8zQGcTWcCBLcnaOGGLPBnYcgpK1PRqUKLSqHlkebKfJ7VyCZxm8Dy7ltzGv717pqR9zti_F9WgHf6GridbQa2Ui9Ohj7Xr1S_ov86APvGh1RRWW1OkQNcZ8iw\u0026h=53ek2z2s0_RrU-9whyEfBszrO7oFOoQEClVkBxkjfAM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "b1e9a4f3-04df-48d7-ba97-0968beaeca19" ], + "CommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Remove-AzDnsResolverPolicyVirtualNetworkLink_DeleteViaIdentity" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 204, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "afac0834-7b97-4560-b6e0-9fcce1c009cd" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "afac0834-7b97-4560-b6e0-9fcce1c009cd" ], + "x-ms-correlation-request-id": [ "afac0834-7b97-4560-b6e0-9fcce1c009cd" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060514Z:afac0834-7b97-4560-b6e0-9fcce1c009cd" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5EFFA351A2F1437CA202DB9B9A9C92FC Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:13Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:13 GMT" ] + }, + "ContentHeaders": { + "Expires": [ "-1" ] + }, + "Content": null, + "isContentBase64": false + } + }, + "Remove-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Deletes a dns resolver policy virtual network link via identity+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworkLinks/psdnsresolverpolicylinkname353hj35?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "e0085466-2219-470e-9d17-4e1fc1f9a832" ], + "CommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyVirtualNetworkLink_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 404, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "827f63c4-7932-4bb2-9414-52d4cd21100d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "827f63c4-7932-4bb2-9414-52d4cd21100d" ], + "x-ms-correlation-request-id": [ "827f63c4-7932-4bb2-9414-52d4cd21100d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T060515Z:827f63c4-7932-4bb2-9414-52d4cd21100d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 4FBEC840504B4368AD4A803C50951902 Ref B: CO6AA3150220023 Ref C: 2024-10-21T06:05:14Z" ], + "Date": [ "Mon, 21 Oct 2024 06:05:14 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "363" ], + "Content-Type": [ "application/json" ], + "Expires": [ "-1" ] + }, + "Content": "{\"error\":{\"details\":null,\"code\":\"NotFound\",\"message\":\"DNS resolver policy link not found in database. dnsResolverPolicyLinkResourceId=/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-remove/dnsResolverPolicies/psdnsresolverpolicyforlinkname353hj35/virtualNetworksLinks/psdnsresolverpolicylinkname353hj35\",\"target\":null}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 new file mode 100644 index 000000000000..8dc47f5e26fa --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Remove-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 @@ -0,0 +1,69 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzDnsResolverPolicyVirtualNetworkLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzDnsResolverPolicyVirtualNetworkLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzDnsResolverPolicyVirtualNetworkLink' { + It 'Deletes a dns resolver policy virtual network link' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinkname7sadjfa"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinkname7sadjfa"; + $virtualNetworkName = "psvirtualnetworkforlinkname7sadjfa"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + $subscriptionId = "91ab65d2-c73f-4768-89d0-b061815f258b"; + $virtualNetworkId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + + if ($TestMode -eq "Record") + { + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + } + + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $virtualNetworkId + + # ACT + $updatedDnsResolverPolicyLink = Remove-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName + + # ASSERT + { Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Throw + } + + It 'Deletes a dns resolver policy virtual network link via identity' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinkname353hj35"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinkname353hj35"; + $virtualNetworkName = "psvirtualnetworkforlinkname353hj35"; + $resourceGroupName = "powershell-test-rg-debug-remove"; + $location = "westus2"; + $subscriptionId = "91ab65d2-c73f-4768-89d0-b061815f258b"; + $virtualNetworkId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + + if ($TestMode -eq "Record") + { + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + } + + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $virtualNetworkId + + # ACT - ASSERT + Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName | Remove-AzDnsResolverPolicyVirtualNetworkLink + + # ASSERT + { Get-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName } | Should -Throw + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRuleset.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRuleset.Recording.json index 8263b267ab58..2d3c8a4dd4ab 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRuleset.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRuleset.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9\",\"startTime\":\"2022-02-18T00:43:17.0000000Z\",\"endTime\":\"2022-02-18T00:43:19.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImYzYzQ4NGI5LTRkZTYtNGY2Ni05MjYwLTE4MzcwN2YzNmZmYyJ9\",\"startTime\":\"2022-02-18T00:43:17.0000000Z\",\"endTime\":\"2022-02-18T00:43:19.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname54\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9a35ecf8-8f13-4caa-84eb-deeb44f7540b\"},\"etag\":\"\\\"0500d82c-0000-0200-0000-620eeba70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54\",\"name\":\"psdnsresolvername54\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:43:17.785088Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:43:17.785088Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname54\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"9a35ecf8-8f13-4caa-84eb-deeb44f7540b\"},\"etag\":\"\\\"0500d82c-0000-0200-0000-620eeba70000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54\",\"name\":\"psdnsresolvername54\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T00:43:17.785088Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:43:17.785088Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=\",\"startTime\":\"2022-02-18T00:43:25.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=\",\"startTime\":\"2022-02-18T00:43:25.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=\",\"startTime\":\"2022-02-18T00:43:25.0000000Z\",\"endTime\":\"2022-02-18T00:43:34.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNDE1YjVjMGEtN2RmMS00ZjZmLThhZmMtNDcyOWJiMzFlMjVmIn0=\",\"startTime\":\"2022-02-18T00:43:25.0000000Z\",\"endTime\":\"2022-02-18T00:43:34.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname54/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"19b39e1a-a0ab-4942-a7c5-e008bf7f5a96\"},\"etag\":\"\\\"03008d47-0000-0200-0000-620eebb60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54\",\"name\":\"psoutboundendpointname54\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-18T00:43:24.9841212Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:43:24.9841212Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname54/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"19b39e1a-a0ab-4942-a7c5-e008bf7f5a96\"},\"etag\":\"\\\"03008d47-0000-0200-0000-620eebb60000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54\",\"name\":\"psoutboundendpointname54\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-18T00:43:24.9841212Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:43:24.9841212Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9\",\"startTime\":\"2022-02-18T00:44:02.0000000Z\",\"endTime\":\"2022-02-18T00:44:03.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImYwY2Y3NDJkLTliYzAtNDRkMy04ZTY2LTA1MjQ3MmUyZjA1MyJ9\",\"startTime\":\"2022-02-18T00:44:02.0000000Z\",\"endTime\":\"2022-02-18T00:44:03.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,14 +419,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d57458e9-1932-4190-a40e-3b22130681d6\"},\"etag\":\"\\\"0b007f2f-0000-0200-0000-620eebd30000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54\",\"name\":\"psdnsforwardingrulesetname54\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-18T00:44:02.5811014Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:44:02.5811014Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername54/outboundEndpoints/psoutboundendpointname54\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d57458e9-1932-4190-a40e-3b22130681d6\"},\"etag\":\"\\\"0b007f2f-0000-0200-0000-620eebd30000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54\",\"name\":\"psdnsforwardingrulesetname54\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-18T00:44:02.5811014Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:44:02.5811014Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2023-07-01-preview", "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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+12": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -503,14 +503,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9\",\"startTime\":\"2022-02-18T00:44:09.0000000Z\",\"endTime\":\"2022-02-18T00:44:10.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImY3MTY0ZDI1LTFkZDUtNGIwNC04MmY2LTE5ZWY5N2IxZWQ1ZiJ9\",\"startTime\":\"2022-02-18T00:44:09.0000000Z\",\"endTime\":\"2022-02-18T00:44:10.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+13": { + "Update-AzDnsForwardingRuleset+[NoContext]+Update DNS forwarding ruleset by adding tag, expect DNS forwarding ruleset updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -546,7 +546,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d57458e9-1932-4190-a40e-3b22130681d6\"},\"etag\":\"\\\"0b000130-0000-0200-0000-620eebd90000\\\"\",\"location\":\"eastus2\",\"tags\":{\"keyaevu7\":\"valueaevu7\",\"key71h0x\":\"value71h0x\",\"key84nz7\":\"value84nz7\",\"key763r0\":\"value763r0\",\"keysp38b\":\"valuesp38b\",\"keya62xd\":\"valuea62xd\"},\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54\",\"name\":\"psdnsforwardingrulesetname54\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-18T00:44:02.5811014Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:44:09.0271005Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"d57458e9-1932-4190-a40e-3b22130681d6\"},\"etag\":\"\\\"0b000130-0000-0200-0000-620eebd90000\\\"\",\"location\":\"eastus2\",\"tags\":{\"keyaevu7\":\"valueaevu7\",\"key71h0x\":\"value71h0x\",\"key84nz7\":\"value84nz7\",\"key763r0\":\"value763r0\",\"keysp38b\":\"valuesp38b\",\"keya62xd\":\"valuea62xd\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname54\",\"name\":\"psdnsforwardingrulesetname54\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-18T00:44:02.5811014Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T00:44:09.0271005Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRulesetForwardingRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRulesetForwardingRule.Recording.json index b03daa3be600..2270505caa93 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRulesetForwardingRule.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRulesetForwardingRule.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9\",\"startTime\":\"2022-02-18T01:48:41.0000000Z\",\"endTime\":\"2022-02-18T01:48:44.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjUxMWU5MDM0LWEyNWUtNGJhMS1iMzFmLWNmZDQ1OWQ0ODFhMCJ9\",\"startTime\":\"2022-02-18T01:48:41.0000000Z\",\"endTime\":\"2022-02-18T01:48:44.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"95fbffd9-a3e5-4e47-98dc-523835b803ea\"},\"etag\":\"\\\"05004b39-0000-0200-0000-620efafc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57\",\"name\":\"psdnsresolvername57\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T01:48:41.0550366Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:48:41.0550366Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"95fbffd9-a3e5-4e47-98dc-523835b803ea\"},\"etag\":\"\\\"05004b39-0000-0200-0000-620efafc0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57\",\"name\":\"psdnsresolvername57\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T01:48:41.0550366Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:48:41.0550366Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=\",\"startTime\":\"2022-02-18T01:48:48.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=\",\"startTime\":\"2022-02-18T01:48:48.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=\",\"startTime\":\"2022-02-18T01:48:48.0000000Z\",\"endTime\":\"2022-02-18T01:48:55.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiYWYzNGI4MzMtN2UxNy00Mzk0LWJkNDYtYmE2MzM3NTQ4NTIwIn0=\",\"startTime\":\"2022-02-18T01:48:48.0000000Z\",\"endTime\":\"2022-02-18T01:48:55.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f84211b3-32b9-43e9-8109-f72b9ede56d4\"},\"etag\":\"\\\"0300735c-0000-0200-0000-620efb070000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57\",\"name\":\"psoutboundendpointname57\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-18T01:48:48.2354937Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:48:48.2354937Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"f84211b3-32b9-43e9-8109-f72b9ede56d4\"},\"etag\":\"\\\"0300735c-0000-0200-0000-620efb070000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57\",\"name\":\"psoutboundendpointname57\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-18T01:48:48.2354937Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:48:48.2354937Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9\",\"startTime\":\"2022-02-18T01:49:25.0000000Z\",\"endTime\":\"2022-02-18T01:49:27.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6ImM0Y2ZkMGY1LTQ3NWUtNDkwMS05MTViLTE5OGJjZjhlYzc1YSJ9\",\"startTime\":\"2022-02-18T01:49:25.0000000Z\",\"endTime\":\"2022-02-18T01:49:27.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,14 +419,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3e6a03be-09a4-4971-b950-4bfa1e0394cb\"},\"etag\":\"\\\"0b002f7f-0000-0200-0000-620efb270000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57\",\"name\":\"psdnsforwardingrulesetname57\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-18T01:49:25.6492846Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:49:25.6492846Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername57/outboundEndpoints/psoutboundendpointname57\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3e6a03be-09a4-4971-b950-4bfa1e0394cb\"},\"etag\":\"\\\"0b002f7f-0000-0200-0000-620efb270000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57\",\"name\":\"psdnsforwardingrulesetname57\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-18T01:49:25.6492846Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:49:25.6492846Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2023-07-01-preview", "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": { @@ -457,14 +457,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"domainName\":\"psdomainName57.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700a4b5-0000-0200-0000-620efb2b0000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57\",\"name\":\"psdnsforwardingrulename57\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-18T01:49:31.8405434Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:49:31.8405434Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"domainName\":\"psdomainName57.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700a4b5-0000-0200-0000-620efb2b0000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57\",\"name\":\"psdnsforwardingrulename57\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-18T01:49:31.8405434Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:49:31.8405434Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+12": { + "Update-AzDnsForwardingRulesetForwardingRule+[NoContext]+Update forwarding rule by adding tag, expect forwarding rule updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57?api-version=2023-07-01-preview", "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": { @@ -495,7 +495,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"domainName\":\"psdomainName57.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"metadata\":{\"key8oxlg\":\"value8oxlg\",\"keys6h9b\":\"values6h9b\",\"key6yqnr\":\"value6yqnr\",\"keyrqin6\":\"valuerqin6\",\"keyau2lc\":\"valueau2lc\",\"keyi98zd\":\"valuei98zd\"},\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700acb5-0000-0200-0000-620efb2c0000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57\",\"name\":\"psdnsforwardingrulename57\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-18T01:49:31.8405434Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:49:32.4305775Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"domainName\":\"psdomainName57.com.\",\"targetDnsServers\":[{\"ipAddress\":\"10.0.0.3\",\"port\":53}],\"metadata\":{\"key8oxlg\":\"value8oxlg\",\"keys6h9b\":\"values6h9b\",\"key6yqnr\":\"value6yqnr\",\"keyrqin6\":\"valuerqin6\",\"keyau2lc\":\"valueau2lc\",\"keyi98zd\":\"valuei98zd\"},\"forwardingRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0700acb5-0000-0200-0000-620efb2c0000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname57/forwardingRules/psdnsforwardingrulename57\",\"name\":\"psdnsforwardingrulename57\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/forwardingRules\",\"systemData\":{\"createdAt\":\"2022-02-18T01:49:31.8405434Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T01:49:32.4305775Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json index f18a57d9acf8..f3b06b7dc124 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsForwardingRulesetVirtualNetworkLink.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9\",\"startTime\":\"2022-02-18T02:03:23.0000000Z\",\"endTime\":\"2022-02-18T02:03:25.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImFjNzk2NGQ0LWFhNzEtNGJmNS05OWI4LWI5MmNlZTBjYzc5NiJ9\",\"startTime\":\"2022-02-18T02:03:23.0000000Z\",\"endTime\":\"2022-02-18T02:03:25.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3616b749-ad66-48b0-9d91-c83f0baa8114\"},\"etag\":\"\\\"0500b03b-0000-0200-0000-620efe6d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59\",\"name\":\"psdnsresolvername59\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:03:23.3941961Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:03:23.3941961Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3616b749-ad66-48b0-9d91-c83f0baa8114\"},\"etag\":\"\\\"0500b03b-0000-0200-0000-620efe6d0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59\",\"name\":\"psdnsresolvername59\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-18T02:03:23.3941961Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:03:23.3941961Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=\",\"startTime\":\"2022-02-18T02:03:30.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=\",\"startTime\":\"2022-02-18T02:03:30.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=\",\"startTime\":\"2022-02-18T02:03:30.0000000Z\",\"endTime\":\"2022-02-18T02:03:40.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNWNiNjUyNWMtZmVhMS00ZDlmLWIxNmQtNjc0ZWY5YzA0ZjEyIn0=\",\"startTime\":\"2022-02-18T02:03:30.0000000Z\",\"endTime\":\"2022-02-18T02:03:40.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,15 +292,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb1842dd-8270-48f2-a748-88c95b4affd1\"},\"etag\":\"\\\"0300f35e-0000-0200-0000-620efe7c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59\",\"name\":\"psoutboundendpointname59\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-18T02:03:30.5468386Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:03:30.5468386Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"fb1842dd-8270-48f2-a748-88c95b4affd1\"},\"etag\":\"\\\"0300f35e-0000-0200-0000-620efe7c0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59\",\"name\":\"psoutboundendpointname59\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-18T02:03:30.5468386Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:03:30.5468386Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"dnsResolverOutboundEndpoints\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9\",\"startTime\":\"2022-02-18T02:04:09.0000000Z\",\"endTime\":\"2022-02-18T02:04:10.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zRm9yd2FyZGluZ1J1bGVzZXQiLCJPcGVyYXRpb25JZCI6IjlkMTdkNzcyLTRiMWEtNGNmMy1iOGQ1LTA3MGNmZjQzNGE2MSJ9\",\"startTime\":\"2022-02-18T02:04:09.0000000Z\",\"endTime\":\"2022-02-18T02:04:10.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,15 +419,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e15c6e82-8f22-4d9d-99b8-4a79e152baed\"},\"etag\":\"\\\"0b007e8e-0000-0200-0000-620efe9a0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59\",\"name\":\"psdnsforwardingrulesetname59\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-18T02:04:09.4794657Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:04:09.4794657Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"dnsResolverOutboundEndpoints\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername59/outboundEndpoints/psoutboundendpointname59\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"e15c6e82-8f22-4d9d-99b8-4a79e152baed\"},\"etag\":\"\\\"0b007e8e-0000-0200-0000-620efe9a0000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59\",\"name\":\"psdnsforwardingrulesetname59\",\"type\":\"Microsoft.Network/dnsForwardingRulesets\",\"systemData\":{\"createdAt\":\"2022-02-18T02:04:09.4794657Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:04:09.4794657Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+11": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2023-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+12": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -503,14 +503,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==\",\"startTime\":\"2022-02-18T02:04:15.0000000Z\",\"endTime\":\"2022-02-18T02:04:18.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJhYmY5YzNhZi1jYzU3LTRhYzktOTY3ZS1iM2Y0N2ZjYTc3OWUifQ==\",\"startTime\":\"2022-02-18T02:04:15.0000000Z\",\"endTime\":\"2022-02-18T02:04:18.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+13": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -546,14 +546,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0b00a78e-0000-0200-0000-620efea20000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59\",\"name\":\"psvirtualnetworklinkname59\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-18T02:04:15.6325745Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:04:15.6325745Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"0b00a78e-0000-0200-0000-620efea20000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59\",\"name\":\"psvirtualnetworklinkname59\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-18T02:04:15.6325745Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:04:15.6325745Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+14": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2023-07-01-preview", "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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+15": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -630,14 +630,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==\",\"startTime\":\"2022-02-18T02:04:21.0000000Z\",\"endTime\":\"2022-02-18T02:04:24.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0VmlydHVhbE5ldHdvcmtMaW5rIiwiT3BlcmF0aW9uSWQiOiJmYTVhNWQ4Yi1kMGJjLTRiMGUtODMwOC03M2U0MTQyZDFmMjkifQ==\",\"startTime\":\"2022-02-18T02:04:21.0000000Z\",\"endTime\":\"2022-02-18T02:04:24.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+16": { + "Update-AzDnsForwardingRulesetVirtualNetworkLink+[NoContext]+Update virtual network link by adding tag, expect virtual network link updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -673,7 +673,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"},\"provisioningState\":\"Succeeded\",\"metadata\":{\"keyn2xcf\":\"valuen2xcf\",\"key7d53i\":\"value7d53i\",\"keyokbnq\":\"valueokbnq\",\"keylmszu\":\"valuelmszu\",\"keywtgxb\":\"valuewtgxb\",\"key4cqnl\":\"value4cqnl\"}},\"etag\":\"\\\"0b00c68e-0000-0200-0000-620efea80000\\\"\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59\",\"name\":\"psvirtualnetworklinkname59\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-18T02:04:15.6325745Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:04:21.8235064Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59\"},\"provisioningState\":\"Succeeded\",\"metadata\":{\"keyn2xcf\":\"valuen2xcf\",\"key7d53i\":\"value7d53i\",\"keyokbnq\":\"valueokbnq\",\"keylmszu\":\"valuelmszu\",\"keywtgxb\":\"valuewtgxb\",\"key4cqnl\":\"value4cqnl\"}},\"etag\":\"\\\"0b00c68e-0000-0200-0000-620efea80000\\\"\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsForwardingRulesets/psdnsforwardingrulesetname59/virtualNetworkLinks/psvirtualnetworklinkname59\",\"name\":\"psvirtualnetworklinkname59\",\"type\":\"Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2022-02-18T02:04:15.6325745Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-18T02:04:21.8235064Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolver.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolver.Recording.json index e996c459a00e..7950853695bd 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolver.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolver.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9\",\"startTime\":\"2022-02-17T18:39:14.0000000Z\",\"endTime\":\"2022-02-17T18:39:15.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjQ5YTUyMTM4LTQ4ZDEtNGVhMC1hMzFjLTEzNzAxZDg1NGM1OCJ9\",\"startTime\":\"2022-02-17T18:39:14.0000000Z\",\"endTime\":\"2022-02-17T18:39:15.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,14 +122,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72c1afff-5fd0-4d9a-b8dd-1b8813e8e360\"},\"etag\":\"\\\"040072e9-0000-0200-0000-620e96530000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47\",\"name\":\"psdnsresolvername47\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:20:23.6702765Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:14.4742667Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72c1afff-5fd0-4d9a-b8dd-1b8813e8e360\"},\"etag\":\"\\\"040072e9-0000-0200-0000-620e96530000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47\",\"name\":\"psdnsresolvername47\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:20:23.6702765Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:14.4742667Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2023-07-01-preview", "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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9\",\"startTime\":\"2022-02-17T18:39:21.0000000Z\",\"endTime\":\"2022-02-17T18:39:24.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6IjYxOWJiNjA4LWE2YmEtNDVjNC1hNGNhLWYzMWFlNDgxMGUyYyJ9\",\"startTime\":\"2022-02-17T18:39:21.0000000Z\",\"endTime\":\"2022-02-17T18:39:24.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+6": { + "Update-AzDnsResolver+[NoContext]+Update DNS Resolver by adding tag, expect DNS resolver updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,7 +249,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72c1afff-5fd0-4d9a-b8dd-1b8813e8e360\"},\"etag\":\"\\\"040077e9-0000-0200-0000-620e965c0000\\\"\",\"location\":\"eastus2\",\"tags\":{\"key61vjg\":\"value61vjg\",\"keytv1ko\":\"valuetv1ko\",\"keyudrxw\":\"valueudrxw\",\"keys2wib\":\"values2wib\",\"key6vg71\":\"value6vg71\",\"keyvp0ce\":\"valuevp0ce\"},\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47\",\"name\":\"psdnsresolvername47\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:20:23.6702765Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:21.0848109Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"72c1afff-5fd0-4d9a-b8dd-1b8813e8e360\"},\"etag\":\"\\\"040077e9-0000-0200-0000-620e965c0000\\\"\",\"location\":\"eastus2\",\"tags\":{\"key61vjg\":\"value61vjg\",\"keytv1ko\":\"valuetv1ko\",\"keyudrxw\":\"valueudrxw\",\"keys2wib\":\"values2wib\",\"key6vg71\":\"value6vg71\",\"keyvp0ce\":\"valuevp0ce\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername47\",\"name\":\"psdnsresolvername47\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:20:23.6702765Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:21.0848109Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Recording.json new file mode 100644 index 000000000000..d1f1e4d7d797 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Recording.json @@ -0,0 +1,299 @@ +{ + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "8a9a1753-79d6-464c-962a-02a6021abc42" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9?api-version=2023-07-01-preview\u0026t=638650819019787410\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhv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8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=lg3szzwMgUAmcq7cOrMdmB9cPDWOJaZCjAKvEE_DfaQJdEg_3LjwNW0xTsgpqJgI_jGcHf9qJ2Cu4tUNNaSZVTqfuvtm3LDfCUJbkVWV5ocX8lHO3PxZ8-QrnGkASUR4DCoCZb74q6VEe8bQdmfXY6Jm8i4TjWxBIbIBVkAI7WfhsIxDI6jfnVDmiK4jRx8_BCzZbdFivgtDNqLqh3t7J4fpHImzKJd9ff0S3QVXP5gCcNMWbmbkJCcAitO0o9UwLPwHEAyjgN2DxZnQGZoxHSyI0nv8zqpPCsFCD7ZMowHk1fzhFV01Uh23gZR2UZnGNxS1w3VgvIRNJfWBtp37uw\u0026h=RVLllkqNFoMw-vaVJ4JkTw2uewGc4vKJCXZ65lRxZU4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "8a9a1753-79d6-464c-962a-02a6021abc42" ], + "x-ms-correlation-request-id": [ "8a9a1753-79d6-464c-962a-02a6021abc42" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043141Z:8a9a1753-79d6-464c-962a-02a6021abc42" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 67A75CA599DD4189A0A6FB7BFE3EFB40 Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:40Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "613" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6e01a449-0000-0800-0000-6715d92d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47\",\"name\":\"psdnsresolverdomainlistname47\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:31:41.7599826Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:31:41.7599826Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9?api-version=2023-07-01-preview\u0026t=638650819019787410\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY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7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=lg3szzwMgUAmcq7cOrMdmB9cPDWOJaZCjAKvEE_DfaQJdEg_3LjwNW0xTsgpqJgI_jGcHf9qJ2Cu4tUNNaSZVTqfuvtm3LDfCUJbkVWV5ocX8lHO3PxZ8-QrnGkASUR4DCoCZb74q6VEe8bQdmfXY6Jm8i4TjWxBIbIBVkAI7WfhsIxDI6jfnVDmiK4jRx8_BCzZbdFivgtDNqLqh3t7J4fpHImzKJd9ff0S3QVXP5gCcNMWbmbkJCcAitO0o9UwLPwHEAyjgN2DxZnQGZoxHSyI0nv8zqpPCsFCD7ZMowHk1fzhFV01Uh23gZR2UZnGNxS1w3VgvIRNJfWBtp37uw\u0026h=RVLllkqNFoMw-vaVJ4JkTw2uewGc4vKJCXZ65lRxZU4+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9?api-version=2023-07-01-preview\u0026t=638650819019787410\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbT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GtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=lg3szzwMgUAmcq7cOrMdmB9cPDWOJaZCjAKvEE_DfaQJdEg_3LjwNW0xTsgpqJgI_jGcHf9qJ2Cu4tUNNaSZVTqfuvtm3LDfCUJbkVWV5ocX8lHO3PxZ8-QrnGkASUR4DCoCZb74q6VEe8bQdmfXY6Jm8i4TjWxBIbIBVkAI7WfhsIxDI6jfnVDmiK4jRx8_BCzZbdFivgtDNqLqh3t7J4fpHImzKJd9ff0S3QVXP5gCcNMWbmbkJCcAitO0o9UwLPwHEAyjgN2DxZnQGZoxHSyI0nv8zqpPCsFCD7ZMowHk1fzhFV01Uh23gZR2UZnGNxS1w3VgvIRNJfWBtp37uw\u0026h=RVLllkqNFoMw-vaVJ4JkTw2uewGc4vKJCXZ65lRxZU4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "84d9a5bd-3b46-4ad1-aa0c-ff6bb5672c9c" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "910f4031-6401-4714-9dc1-6ab36974597d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "910f4031-6401-4714-9dc1-6ab36974597d" ], + "x-ms-correlation-request-id": [ "910f4031-6401-4714-9dc1-6ab36974597d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043147Z:910f4031-6401-4714-9dc1-6ab36974597d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7D5209896F7C481C8EDCE7EE59D9580D Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:47Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6ImNhMzg2NjkwLTBmNTgtNDFhMy1iZGJkLTdiZTY3MjgyNWYwOCJ9\",\"startTime\":\"2024-10-21T04:31:41.0000000Z\",\"endTime\":\"2024-10-21T04:31:44.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "84d9a5bd-3b46-4ad1-aa0c-ff6bb5672c9c" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c844838f-ceb3-4ad5-954a-7830ff8d6bd8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c844838f-ceb3-4ad5-954a-7830ff8d6bd8" ], + "x-ms-correlation-request-id": [ "c844838f-ceb3-4ad5-954a-7830ff8d6bd8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043147Z:c844838f-ceb3-4ad5-954a-7830ff8d6bd8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D8D8FCFFF550468682770EEBA25A2B2B Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:47Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:47 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "648" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0fb5524f-fa60-4d55-846c-1170d79af35a\"},\"etag\":\"\\\"3c00ee32-0000-0800-0000-6715d9300000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47\",\"name\":\"psdnsresolverdomainlistname47\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:31:41.7599826Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:31:41.7599826Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"keyyjvrh\": \"valueyjvrh\",\r\n \"key3a7bj\": \"value3a7bj\",\r\n \"keygxk01\": \"valuegxk01\",\r\n \"keyrjxgz\": \"valuerjxgz\",\r\n \"key57rne\": \"value57rne\",\r\n \"keyp7ocd\": \"valuep7ocd\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "207" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090191077\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHaBggrBgEFBQc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XTooLaZXfd58" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "0742ebf7-eb32-432d-9eae-3723484fa27d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090034417\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCS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9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "0742ebf7-eb32-432d-9eae-3723484fa27d" ], + "x-ms-correlation-request-id": [ "0742ebf7-eb32-432d-9eae-3723484fa27d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043149Z:0742ebf7-eb32-432d-9eae-3723484fa27d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 661C9CC12B1F4C4597D24C3035F94B43 Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:47Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:48 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090034417\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0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n_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=roJyaUSKyFrx0XJnwpoWcj7pBReIawR1Nh5Cj2fPEOO1bn8x-UITD9ht3NjchZV_IRTsEHP6R2G-ri-qHqGRQoTguJ9LFO8own1_oHzxdAKyYPF1wYyOOHT6_GdILUDbfl3KjWb2oIhPSW_QvEmbAX4TtvXWSY-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05Yjk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OABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEATAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=roJyaUSKyFrx0XJnwpoWcj7pBReIawR1Nh5Cj2fPEOO1bn8x-UITD9ht3NjchZV_IRTsEHP6R2G-ri-qHqGRQoTguJ9LFO8own1_oHzxdAKyYPF1wYyOOHT6_GdILUDbfl3KjWb2oIhPSW_QvEmbAX4TtvXWSY-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "4625d4fe-f3ea-4139-ac37-2ff3068df72f" ], + "CommandName": [ "Update-AzDnsResolverDomainList" ], + "FullCommandName": [ "Update-AzDnsResolverDomainList_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c0bbbec4-833a-4410-857f-355fb9fab9b9" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c0bbbec4-833a-4410-857f-355fb9fab9b9" ], + "x-ms-correlation-request-id": [ "c0bbbec4-833a-4410-857f-355fb9fab9b9" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043154Z:c0bbbec4-833a-4410-857f-355fb9fab9b9" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 2E498D6490AE40C59E2285C7329420B9 Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:31:54Z" ], + "Date": [ "Mon, 21 Oct 2024 04:31:54 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "530" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==\",\"startTime\":\"2024-10-21T04:31:48.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090034417\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKS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IhPSW_QvEmbAX4TtvXWSY-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==?api-version=2023-07-01-preview\u0026t=638650819090034417\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0d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R1Nh5Cj2fPEOO1bn8x-UITD9ht3NjchZV_IRTsEHP6R2G-ri-qHqGRQoTguJ9LFO8own1_oHzxdAKyYPF1wYyOOHT6_GdILUDbfl3KjWb2oIhPSW_QvEmbAX4TtvXWSY-6SjNcEHzmW6BzmFgxLM8FTlrfLILNps6cdCvm3Z9g_pqo-eR_mAqAckjiZFd9_a67AY6CyF5i05nz9aTxdsAfpfqHhrYPYzAJ-KlockL8MfsYCrhNDVaxvt0xTI0Fg9oqxKHtZJm4NCo6XBM7QtEhWwX2svHig_nHxqNYy8m6Nb8okTUhoFO6Rg\u0026h=UGH3lHGrPHCv_3q2u317fq9t_BgLSbLff5vvaweScq8", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "4625d4fe-f3ea-4139-ac37-2ff3068df72f" ], + "CommandName": [ "Update-AzDnsResolverDomainList" ], + "FullCommandName": [ "Update-AzDnsResolverDomainList_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "9e2705c4-c64c-42d4-8a09-429f9f8509e6" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "9e2705c4-c64c-42d4-8a09-429f9f8509e6" ], + "x-ms-correlation-request-id": [ "9e2705c4-c64c-42d4-8a09-429f9f8509e6" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043224Z:9e2705c4-c64c-42d4-8a09-429f9f8509e6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 0BE10524F47D454BB8880F3F60B62D97 Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:32:24Z" ], + "Date": [ "Mon, 21 Oct 2024 04:32:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJEb21haW5MaXN0IiwiT3BlcmF0aW9uSWQiOiIwNGQwNjFmOC00NjQ2LTQwNTktODlkMC05YjkxMDdiODZhNmIifQ==\",\"startTime\":\"2024-10-21T04:31:48.0000000Z\",\"endTime\":\"2024-10-21T04:31:54.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverDomainList+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "4625d4fe-f3ea-4139-ac37-2ff3068df72f" ], + "CommandName": [ "Update-AzDnsResolverDomainList" ], + "FullCommandName": [ "Update-AzDnsResolverDomainList_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "eeb6df6b-3517-4b7c-8b3f-9b32f6956b7a" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "eeb6df6b-3517-4b7c-8b3f-9b32f6956b7a" ], + "x-ms-correlation-request-id": [ "eeb6df6b-3517-4b7c-8b3f-9b32f6956b7a" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043225Z:eeb6df6b-3517-4b7c-8b3f-9b32f6956b7a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E8850635D96B4194BFF7DEE931A5FBEC Ref B: CO6AA3150220051 Ref C: 2024-10-21T04:32:24Z" ], + "Date": [ "Mon, 21 Oct 2024 04:32:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "801" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0fb5524f-fa60-4d55-846c-1170d79af35a\"},\"etag\":\"\\\"3c00d733-0000-0800-0000-6715d93a0000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyyjvrh\":\"valueyjvrh\",\"key3a7bj\":\"value3a7bj\",\"keygxk01\":\"valuegxk01\",\"keyrjxgz\":\"valuerjxgz\",\"key57rne\":\"value57rne\",\"keyp7ocd\":\"valuep7ocd\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistname47\",\"name\":\"psdnsresolverdomainlistname47\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T04:31:41.7599826Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:31:48.8159406Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Tests.ps1 new file mode 100644 index 000000000000..319dd25c4910 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverDomainList.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDnsResolverDomainList')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDnsResolverDomainList.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzDnsResolverDomainList' { + It 'Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated' { + # ARRANGE + $dnsResolverDomainListName = "psdnsresolverdomainlistname47"; + $resourceGroupName = "powershell-test-rg-debug-update"; + $location = "westus2"; + + $originalDnsResolverDomainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + + $tag = GetRandomHashtable -size 5 + + # ACT + $updatedDnsResolverDomainList = Update-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Tag $tag + + # ASSERT + $updatedDnsResolverDomainList | Should -BeSuccessfullyCreated + $updatedDnsResolverDomainList | Should -BeSameAsExpected -ExpectedValue $originalDnsResolverDomainList + $updatedDnsResolverDomainList.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverInboundEndpoint.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverInboundEndpoint.Recording.json index 39ad266dd035..69535d155848 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverInboundEndpoint.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverInboundEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9\",\"startTime\":\"2022-02-17T18:39:29.0000000Z\",\"endTime\":\"2022-02-17T18:39:34.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6Ijk2ZjEwMGI0LTZmNTItNDI4Zi05YjdmLTM5YmRhZjdlZTBhNSJ9\",\"startTime\":\"2022-02-17T18:39:29.0000000Z\",\"endTime\":\"2022-02-17T18:39:34.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"890f6de6-7708-4b43-94a8-fd5cfbab783f\"},\"etag\":\"\\\"040079e9-0000-0200-0000-620e96660000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48\",\"name\":\"psdnsresolvername48\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:39:29.6020456Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:29.6020456Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"890f6de6-7708-4b43-94a8-fd5cfbab783f\"},\"etag\":\"\\\"040079e9-0000-0200-0000-620e96660000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48\",\"name\":\"psdnsresolvername48\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T18:39:29.6020456Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:29.6020456Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"ipConfigurations\": [\r\n {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==\",\"startTime\":\"2022-02-17T18:39:37.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==\",\"startTime\":\"2022-02-17T18:39:37.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==\",\"startTime\":\"2022-02-17T18:39:37.0000000Z\",\"endTime\":\"2022-02-17T18:39:49.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiI0MDliOTJkZi01OWMwLTRhZjQtYjJjYy0yNTU2ODczYjk2MTYifQ==\",\"startTime\":\"2022-02-17T18:39:37.0000000Z\",\"endTime\":\"2022-02-17T18:39:49.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,14 +292,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"246af253-99ec-434a-b2b1-50c7b8380d12\"},\"etag\":\"\\\"02007fd1-0000-0200-0000-620e96750000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48\",\"name\":\"psinboundendpointname48\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T18:39:36.9631388Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:36.9631388Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"246af253-99ec-434a-b2b1-50c7b8380d12\"},\"etag\":\"\\\"02007fd1-0000-0200-0000-620e96750000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48\",\"name\":\"psinboundendpointname48\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T18:39:36.9631388Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:39:36.9631388Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2023-07-01-preview", "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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==\",\"startTime\":\"2022-02-17T18:40:13.0000000Z\",\"endTime\":\"2022-02-17T18:40:14.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0SW5ib3VuZEVuZHBvaW50IiwiT3BlcmF0aW9uSWQiOiIzMGFjNzRkYy03NTZhLTRlMjctYmMyZC03ZDMzYjk2MDcyMmIifQ==\",\"startTime\":\"2022-02-17T18:40:13.0000000Z\",\"endTime\":\"2022-02-17T18:40:14.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Update-AzDnsResolverInboundEndpoint+[NoContext]+Update inbound endpoint by adding tag, expect inbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,7 +419,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"246af253-99ec-434a-b2b1-50c7b8380d12\",\"metadata\":{\"keyuzb1t\":\"valueuzb1t\",\"keymwq6r\":\"valuemwq6r\",\"keyqzsgt\":\"valueqzsgt\",\"keyawnxy\":\"valueawnxy\",\"key8ju3x\":\"value8ju3x\",\"key6b4wc\":\"value6b4wc\"}},\"etag\":\"\\\"020081d1-0000-0200-0000-620e968e0000\\\"\",\"location\":\"eastus2\",\"tags\":{\"keyuzb1t\":\"valueuzb1t\",\"keymwq6r\":\"valuemwq6r\",\"keyqzsgt\":\"valueqzsgt\",\"keyawnxy\":\"valueawnxy\",\"key8ju3x\":\"value8ju3x\",\"key6b4wc\":\"value6b4wc\"},\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48\",\"name\":\"psinboundendpointname48\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T18:39:36.9631388Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:40:13.9012474Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"ipConfigurations\":[{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48/subnets/snet-sim2\"},\"privateIpAddress\":\"10.2.2.4\",\"privateIpAllocationMethod\":\"Dynamic\"}],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"246af253-99ec-434a-b2b1-50c7b8380d12\",\"metadata\":{\"keyuzb1t\":\"valueuzb1t\",\"keymwq6r\":\"valuemwq6r\",\"keyqzsgt\":\"valueqzsgt\",\"keyawnxy\":\"valueawnxy\",\"key8ju3x\":\"value8ju3x\",\"key6b4wc\":\"value6b4wc\"}},\"etag\":\"\\\"020081d1-0000-0200-0000-620e968e0000\\\"\",\"location\":\"eastus2\",\"tags\":{\"keyuzb1t\":\"valueuzb1t\",\"keymwq6r\":\"valuemwq6r\",\"keyqzsgt\":\"valueqzsgt\",\"keyawnxy\":\"valueawnxy\",\"key8ju3x\":\"value8ju3x\",\"key6b4wc\":\"value6b4wc\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername48/inboundEndpoints/psinboundendpointname48\",\"name\":\"psinboundendpointname48\",\"type\":\"Microsoft.Network/dnsResolvers/inboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T18:39:36.9631388Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T18:40:13.9012474Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverOutboundEndpoint.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverOutboundEndpoint.Recording.json index faf5446776d3..10bba932c14f 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverOutboundEndpoint.Recording.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverOutboundEndpoint.Recording.json @@ -1,9 +1,9 @@ { - "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": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2023-07-01-preview" ], "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=2022-07-01+2": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -79,14 +79,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9\",\"startTime\":\"2022-02-17T20:56:34.0000000Z\",\"endTime\":\"2022-02-17T20:56:37.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXIiLCJPcGVyYXRpb25JZCI6ImUxMGU5ZThiLTBiN2UtNDIyMC1iYTk2LTdhNmMwOWRkZTUzOSJ9\",\"startTime\":\"2022-02-17T20:56:34.0000000Z\",\"endTime\":\"2022-02-17T20:56:37.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+3": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -122,15 +122,15 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1faebe7e-435a-4194-a911-4c9de440184b\"},\"etag\":\"\\\"05005a05-0000-0200-0000-620eb6850000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50\",\"name\":\"psdnsresolvername50\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T20:56:34.6727685Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T20:56:34.6727685Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50\"},\"dnsResolverState\":\"Connected\",\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"1faebe7e-435a-4194-a911-4c9de440184b\"},\"etag\":\"\\\"05005a05-0000-0200-0000-620eb6850000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50\",\"name\":\"psdnsresolvername50\",\"type\":\"Microsoft.Network/dnsResolvers\",\"systemData\":{\"createdAt\":\"2022-02-17T20:56:34.6727685Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T20:56:34.6727685Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+4": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2023-07-01-preview+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=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}", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"eastus2\",\r\n \"properties\": {\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+5": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -206,14 +206,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=\",\"startTime\":\"2022-02-17T20:56:42.0000000Z\",\"status\":\"InProgress\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=\",\"startTime\":\"2022-02-17T20:56:42.0000000Z\",\"status\":\"InProgress\"}", "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=2022-07-01+6": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -249,14 +249,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=\",\"startTime\":\"2022-02-17T20:56:42.0000000Z\",\"endTime\":\"2022-02-17T20:56:57.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiNjJjZDljNjctZDRjMy00N2QwLWEzMjAtNDVhMzA2OTFkNzkyIn0=\",\"startTime\":\"2022-02-17T20:56:42.0000000Z\",\"endTime\":\"2022-02-17T20:56:57.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+7": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -292,14 +292,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0fbb891b-ef5d-4b4c-aaa4-2c0e3d5bf982\"},\"etag\":\"\\\"0200aae6-0000-0200-0000-620eb6990000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50\",\"name\":\"psinboundendpointname50\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T20:56:41.9383096Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T20:56:41.9383096Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0fbb891b-ef5d-4b4c-aaa4-2c0e3d5bf982\"},\"etag\":\"\\\"0200aae6-0000-0200-0000-620eb6990000\\\"\",\"location\":\"eastus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50\",\"name\":\"psinboundendpointname50\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T20:56:41.9383096Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T20:56:41.9383096Z\",\"lastModifiedByType\":\"User\"}}", "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=2022-07-01+8": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2023-07-01-preview", "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=2022-07-01" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2023-07-01-preview" ], "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=2022-07-01+9": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -376,14 +376,14 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=\",\"startTime\":\"2022-02-17T20:57:19.0000000Z\",\"endTime\":\"2022-02-17T20:57:20.0000000Z\",\"status\":\"Succeeded\"}", + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/locations/eastus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0T3V0Ym91bmRFbmRwb2ludCIsIk9wZXJhdGlvbklkIjoiZDg3YzdmYjUtZTk0Yy00YTVjLWE5YzYtNjYxNzY1YTBlMjdlIn0=\",\"startTime\":\"2022-02-17T20:57:19.0000000Z\",\"endTime\":\"2022-02-17T20:57:20.0000000Z\",\"status\":\"Succeeded\"}", "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=2022-07-01+10": { + "Update-AzDnsResolverOutboundEndpoint+[NoContext]+Update outbound endpoint by adding tag, expect outbound endpoint updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2023-07-01-preview+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=2022-07-01", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50?api-version=2023-07-01-preview", "Content": null, "isContentBase64": false, "Headers": { @@ -419,7 +419,7 @@ "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0fbb891b-ef5d-4b4c-aaa4-2c0e3d5bf982\",\"metadata\":{\"keyzfdwe\":\"valuezfdwe\",\"keyfmucv\":\"valuefmucv\",\"key1ghoe\":\"value1ghoe\",\"keypde7v\":\"valuepde7v\",\"key7ylaz\":\"value7ylaz\",\"keyt5hx3\":\"valuet5hx3\"}},\"etag\":\"\\\"0200ace6-0000-0200-0000-620eb6b00000\\\"\",\"location\":\"eastus2\",\"tags\":{\"keyzfdwe\":\"valuezfdwe\",\"keyfmucv\":\"valuefmucv\",\"key1ghoe\":\"value1ghoe\",\"keypde7v\":\"valuepde7v\",\"key7ylaz\":\"value7ylaz\",\"keyt5hx3\":\"valuet5hx3\"},\"id\":\"/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50\",\"name\":\"psinboundendpointname50\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T20:56:41.9383096Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T20:57:18.9340483Z\",\"lastModifiedByType\":\"User\"}}", + "Content": "{\"properties\":{\"subnet\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50/subnets/snet-sim2\"},\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"0fbb891b-ef5d-4b4c-aaa4-2c0e3d5bf982\",\"metadata\":{\"keyzfdwe\":\"valuezfdwe\",\"keyfmucv\":\"valuefmucv\",\"key1ghoe\":\"value1ghoe\",\"keypde7v\":\"valuepde7v\",\"key7ylaz\":\"value7ylaz\",\"keyt5hx3\":\"valuet5hx3\"}},\"etag\":\"\\\"0200ace6-0000-0200-0000-620eb6b00000\\\"\",\"location\":\"eastus2\",\"tags\":{\"keyzfdwe\":\"valuezfdwe\",\"keyfmucv\":\"valuefmucv\",\"key1ghoe\":\"value1ghoe\",\"keypde7v\":\"valuepde7v\",\"key7ylaz\":\"value7ylaz\",\"keyt5hx3\":\"valuet5hx3\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/rg-dev-eastus2-sdk-powershell/providers/Microsoft.Network/dnsResolvers/psdnsresolvername50/outboundEndpoints/psinboundendpointname50\",\"name\":\"psinboundendpointname50\",\"type\":\"Microsoft.Network/dnsResolvers/outboundEndpoints\",\"systemData\":{\"createdAt\":\"2022-02-17T20:56:41.9383096Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2022-02-17T20:57:18.9340483Z\",\"lastModifiedByType\":\"User\"}}", "isContentBase64": false } } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Recording.json new file mode 100644 index 000000000000..b9fcb8aeccc0 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Recording.json @@ -0,0 +1,299 @@ +{ + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "fa638759-e72d-4667-8f11-c2121740a377" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYD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UBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=1qaI7rXxRH0N4N7QxYpj_Rhr_9snLNdmoBPP-MrMfn-Z0i_DNt50Vpjh7KEe1246rP8yPvLN9420lSIcDPUa5YYCPfTPiUae9mPUysO4PIrLsZ363RDE93uzgLRJqFrlfL52w0qGbkImuRiZV7SwznUVsHrG2ruDM5GDAmIFRGr4_DaR5pYrheDIPgJqMxFOOP6bUIjtOyv3Qe1ILt1wAes4FsktvwfYDJNZSTpLxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "fa638759-e72d-4667-8f11-c2121740a377" ], + "x-ms-correlation-request-id": [ "fa638759-e72d-4667-8f11-c2121740a377" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043326Z:fa638759-e72d-4667-8f11-c2121740a377" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E66DC1096BDF4CE18FD9D9F089D43DFA Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:33:24Z" ], + "Date": [ "Mon, 21 Oct 2024 04:33:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "557" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Creating\",\"resourceGuid\":null},\"etag\":\"\\\"6e017069-0000-0800-0000-6715d9950000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47\",\"name\":\"psdnsresolverpolicyname47\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:33:25.9349866Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:33:25.9349866Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDE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o7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=1qaI7rXxRH0N4N7QxYpj_Rhr_9snLNdmoBPP-MrMfn-Z0i_DNt50Vpjh7KEe1246rP8yPvLN9420lSIcDPUa5YYCPfTPiUae9mPUysO4PIrLsZ363RDE93uzgLRJqFrlfL52w0qGbkImuRiZV7SwznUVsHrG2ruDM5GDAmIFRGr4_DaR5pYrheDIPgJqMxFOOP6bUIjtOyv3Qe1ILt1wAes4FsktvwfYDJNZSTpLxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYK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YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=1qaI7rXxRH0N4N7QxYpj_Rhr_9snLNdmoBPP-MrMfn-Z0i_DNt50Vpjh7KEe1246rP8yPvLN9420lSIcDPUa5YYCPfTPiUae9mPUysO4PIrLsZ363RDE93uzgLRJqFrlfL52w0qGbkImuRiZV7SwznUVsHrG2ruDM5GDAmIFRGr4_DaR5pYrheDIPgJqMxFOOP6bUIjtOyv3Qe1ILt1wAes4FsktvwfYDJNZSTpLxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "22080643-8e47-41a0-a9c5-b0ea5900560b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a0dba0ba-e49d-4f4d-834b-0b785aab2893" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a0dba0ba-e49d-4f4d-834b-0b785aab2893" ], + "x-ms-correlation-request-id": [ "a0dba0ba-e49d-4f4d-834b-0b785aab2893" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043331Z:a0dba0ba-e49d-4f4d-834b-0b785aab2893" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: CF7AEE15623D41E5A9DB58022B18DCE5 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:33:31Z" ], + "Date": [ "Mon, 21 Oct 2024 04:33:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=\",\"startTime\":\"2024-10-21T04:33:26.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQ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8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=?api-version=2023-07-01-preview\u0026t=638650820062318700\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhf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R5pYrheDIPgJqMxFOOP6bUIjtOyv3Qe1ILt1wAes4FsktvwfYDJNZSTpLxUJ71zQCynIhCxO4DAG5FSJG5SHaY0JYjIYyVGyfgbJ8IN8BzrbRij26Y0sVVerEbrMthFMH23RlqwnSKD--QyhbHDzS8F2FvZRMPhOaKWf2DQ\u0026h=GwKsmfmVut80EvyVAuJhXKPRp4WGXGpOY3UoOaUEWR4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "22080643-8e47-41a0-a9c5-b0ea5900560b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "03556c33-e090-4eef-8c58-f3cd4d402a68" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "03556c33-e090-4eef-8c58-f3cd4d402a68" ], + "x-ms-correlation-request-id": [ "03556c33-e090-4eef-8c58-f3cd4d402a68" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043401Z:03556c33-e090-4eef-8c58-f3cd4d402a68" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 468B1FBB40C34ED6A376449043957631 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:01Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjUzMzZhOTItY2Q5MC00OWY4LThlY2ItZDg2YjJhNzQzYmZmIn0=\",\"startTime\":\"2024-10-21T04:33:26.0000000Z\",\"endTime\":\"2024-10-21T04:33:34.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "22080643-8e47-41a0-a9c5-b0ea5900560b" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "fb97f2ec-623b-4d4f-aacb-aea60a0258f1" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "fb97f2ec-623b-4d4f-aacb-aea60a0258f1" ], + "x-ms-correlation-request-id": [ "fb97f2ec-623b-4d4f-aacb-aea60a0258f1" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043402Z:fb97f2ec-623b-4d4f-aacb-aea60a0258f1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 29D0C7E555924462BD5B3B239F6D5D6B Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:02Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:01 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "592" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3b203754-dd66-4da8-8249-8b09a70faad9\"},\"etag\":\"\\\"29005c82-0000-0800-0000-6715d99e0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47\",\"name\":\"psdnsresolverpolicyname47\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:33:25.9349866Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:33:25.9349866Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"key8fu6p\": \"value8fu6p\",\r\n \"keynaxpz\": \"valuenaxpz\",\r\n \"key5mv9s\": \"value5mv9s\",\r\n \"keyd5xju\": \"valued5xju\",\r\n \"keytq72z\": \"valuetq72z\",\r\n \"key1usrc\": \"value1usrc\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "207" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9?api-version=2023-07-01-preview\u0026t=638650820434137311\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwN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aNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=i1YGB3iL-zq_4b890XVXQiAxWhGlBsPcXfvdS2nuyODNL2G35WqXtastoWB9Bm0ACV90x75pxHHjhg2bLJeF2W9qImhwS9p0D_ssUVMwp12uMGRiZ9Ie3pw34_S9cslJfGpF3Lhl-QG8Uh13ToDLvvDuCHyQ3uMHaGOfSbcEChZh1C4IQ6dihUphFknN1GONc-7neuviQw7cE-VyKZpfk7S4bx_2Ny4lE7cCSAKK03r1N3m9h4QSQ3QsBbIB49oiI5DNZ-C6vTzA6z28n6Iq3LMS96JMufWbSLPJZRmHhZ8jlyGy0OvV5JTGnQyGVLpRRJuXcLkoTXqTGz21m6TxvA\u0026h=5S2TnWG0xjGPga8Do6tb4EzlbgWPcTxgShwN44o2YRY" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "18e78183-de9e-4188-a166-c679a04acaef" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9?api-version=2023-07-01-preview\u0026t=638650820433981017\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtg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fBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ECQx8Hiev7Y_f6IdAtOsdqnkRB3TWuafGDt4pgI1be9s7ITEqdGY8eI862qw4ugL4oTap_9piuEUiei7VcQAmKRLwToJFMiTUGc1fM3AqR7p4m4rsaHI6Hlz7HtB_Xm-NzA05vX_V1S-_YRYtzErIdnX4jjLbpopg7aP-STgy3qz_HtgxD2l2WB5CoVcp6pJK8ewBC6znWplb31ltLus4kUct6T6eNzGXDb3XwYTm31FG-yOulLVGj4DqcdNSXCufHsUwRkXsuadsFLpzvoVxGEZ57rHEcocFIVBmVOO57tDzgHrKpua5ug8jqp0UTFXeLk6z3yqsm8Ze5Nw0GK2ug\u0026h=6mlS22TtIXyLxR24T7S0OthjR6PwmeHO9uEI7nsBjIg" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "18e78183-de9e-4188-a166-c679a04acaef" ], + "x-ms-correlation-request-id": [ "18e78183-de9e-4188-a166-c679a04acaef" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043403Z:18e78183-de9e-4188-a166-c679a04acaef" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1FD6D9553F944B559D1220D494CB56A8 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:02Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:02 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9?api-version=2023-07-01-preview\u0026t=638650820433981017\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU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q\u0026s=ECQx8Hiev7Y_f6IdAtOsdqnkRB3TWuafGDt4pgI1be9s7ITEqdGY8eI862qw4ugL4oTap_9piuEUiei7VcQAmKRLwToJFMiTUGc1fM3AqR7p4m4rsaHI6Hlz7HtB_Xm-NzA05vX_V1S-_YRYtzErIdnX4jjLbpopg7aP-STgy3qz_HtgxD2l2WB5CoVcp6pJK8ewBC6znWplb31ltLus4kUct6T6eNzGXDb3XwYTm31FG-yOulLVGj4DqcdNSXCufHsUwRkXsuadsFLpzvoVxGEZ57rHEcocFIVBmVOO57tDzgHrKpua5ug8jqp0UTFXeLk6z3yqsm8Ze5Nw0GK2ug\u0026h=6mlS22TtIXyLxR24T7S0OthjR6PwmeHO9uEI7nsBjIg+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9?api-version=2023-07-01-preview\u0026t=638650820433981017\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY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1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=ECQx8Hiev7Y_f6IdAtOsdqnkRB3TWuafGDt4pgI1be9s7ITEqdGY8eI862qw4ugL4oTap_9piuEUiei7VcQAmKRLwToJFMiTUGc1fM3AqR7p4m4rsaHI6Hlz7HtB_Xm-NzA05vX_V1S-_YRYtzErIdnX4jjLbpopg7aP-STgy3qz_HtgxD2l2WB5CoVcp6pJK8ewBC6znWplb31ltLus4kUct6T6eNzGXDb3XwYTm31FG-yOulLVGj4DqcdNSXCufHsUwRkXsuadsFLpzvoVxGEZ57rHEcocFIVBmVOO57tDzgHrKpua5ug8jqp0UTFXeLk6z3yqsm8Ze5Nw0GK2ug\u0026h=6mlS22TtIXyLxR24T7S0OthjR6PwmeHO9uEI7nsBjIg", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "5e8ce337-83b0-4915-8bfb-e23945c7befb" ], + "CommandName": [ "Update-AzDnsResolverPolicy" ], + "FullCommandName": [ "Update-AzDnsResolverPolicy_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a8c776ab-6fe0-442e-aa38-228165dd7ba8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a8c776ab-6fe0-442e-aa38-228165dd7ba8" ], + "x-ms-correlation-request-id": [ "a8c776ab-6fe0-442e-aa38-228165dd7ba8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043408Z:a8c776ab-6fe0-442e-aa38-228165dd7ba8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6BEFB1142B32439A9A125776919E2CE1 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:08Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3kiLCJPcGVyYXRpb25JZCI6IjhmNjhjMGRiLWRkYzItNGE5Zi1iMjM2LWNkZGVhOGYwNWRjMSJ9\",\"startTime\":\"2024-10-21T04:34:03.0000000Z\",\"endTime\":\"2024-10-21T04:34:04.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicy+[NoContext]+Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "5e8ce337-83b0-4915-8bfb-e23945c7befb" ], + "CommandName": [ "Update-AzDnsResolverPolicy" ], + "FullCommandName": [ "Update-AzDnsResolverPolicy_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "f20d1978-47fc-4716-a747-bdadf140fca8" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "f20d1978-47fc-4716-a747-bdadf140fca8" ], + "x-ms-correlation-request-id": [ "f20d1978-47fc-4716-a747-bdadf140fca8" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T043408Z:f20d1978-47fc-4716-a747-bdadf140fca8" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5A05ED7904E24EC88AEAF50232CEBB33 Ref B: CO6AA3150218025 Ref C: 2024-10-21T04:34:08Z" ], + "Date": [ "Mon, 21 Oct 2024 04:34:08 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "744" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"3b203754-dd66-4da8-8249-8b09a70faad9\"},\"etag\":\"\\\"29005286-0000-0800-0000-6715d9bc0000\\\"\",\"location\":\"westus2\",\"tags\":{\"key8fu6p\":\"value8fu6p\",\"keynaxpz\":\"valuenaxpz\",\"key5mv9s\":\"value5mv9s\",\"keyd5xju\":\"valued5xju\",\"keytq72z\":\"valuetq72z\",\"key1usrc\":\"value1usrc\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyname47\",\"name\":\"psdnsresolverpolicyname47\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T04:33:25.9349866Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T04:34:03.241853Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Tests.ps1 new file mode 100644 index 000000000000..5aa66bfb1e05 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicy.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDnsResolverPolicy')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDnsResolverPolicy.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzDnsResolverPolicy' { + It 'Update DNS Resolver Policy by adding tag, expect DNS resolver policy updated' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyname47"; + $resourceGroupName = "powershell-test-rg-debug-update"; + $location = "westus2"; + + $originalDnsResolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + + $tag = GetRandomHashtable -size 5 + + # ACT + $updatedDnsResolverPolicy = Update-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Tag $tag + + # ASSERT + $updatedDnsResolverPolicy | Should -BeSuccessfullyCreated + $updatedDnsResolverPolicy | Should -BeSameAsExpected -ExpectedValue $originalDnsResolverPolicy + $updatedDnsResolverPolicy.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Recording.json new file mode 100644 index 000000000000..70372bba6411 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Recording.json @@ -0,0 +1,639 @@ +{ + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE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JPJpwyGYZxd8nOUnL61Yg\u0026h=aPyXYNpU5F6i5gRn7zkCBhD_SQu-Vn5HzlzPiXSvagE" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "40aa1b54-f068-4505-8f2b-f9ff3d3f0b27" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3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GUtdxbra0vmr9cT3-Igk-eJTdJV-lLJUmam5TspC-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "40aa1b54-f068-4505-8f2b-f9ff3d3f0b27" ], + "x-ms-correlation-request-id": [ "40aa1b54-f068-4505-8f2b-f9ff3d3f0b27" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053551Z:40aa1b54-f068-4505-8f2b-f9ff3d3f0b27" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 1990F2E00CC74A5E90628A0D0DD0292B Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:35:50Z" ], + "Date": [ "Mon, 21 Oct 2024 05:35:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"72013f8a-0000-0800-0000-6715e8370000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg\",\"name\":\"psdnsresolverpolicyforrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:18:56.4474739Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:35:51.2392362Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4Zy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C-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9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qpLbsTNK8QA-RQAsVCpUNN1_c6i0b4DMSe0196lV3aWi1wSjVreUFnRspWlS9NxmJau7uAvozSLhVRaWHhmHJGUtdxbra0vmr9cT3-Igk-eJTdJV-lLJUmam5TspC-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "c8248510-b950-4f15-8018-db548a8d5537" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "956b5168-fa1d-44b3-a61f-a622df010dee" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "498" ], + "x-ms-request-id": [ "956b5168-fa1d-44b3-a61f-a622df010dee" ], + "x-ms-correlation-request-id": [ "956b5168-fa1d-44b3-a61f-a622df010dee" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053556Z:956b5168-fa1d-44b3-a61f-a622df010dee" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 39BA6F450F4140FFA6D497DB7A580589 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:35:56Z" ], + "Date": [ "Mon, 21 Oct 2024 05:35:56 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "522" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=\",\"startTime\":\"2024-10-21T05:35:51.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2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c9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=CEfYwIyO0BkBhEHvexCrXOzbeJs4Jf-KJqNddD39mlS_sWd0v7kE0LBCZSUrTBFzH4EXMQTqpLbsTNK8QA-RQAsVCpUNN1_c6i0b4DMSe0196lV3aWi1wSjVreUFnRspWlS9NxmJau7uAvozSLhVRaWHhmHJGUtdxbra0vmr9cT3-Igk-eJTdJV-lLJUmam5TspC-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=?api-version=2023-07-01-preview\u0026t=638650857514267227\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhki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2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFsx7FtYAzSo98T5ydNFa0ukjPZ6XCQc9zo7ldqy235P_zJAUkaNgCU4EGOzbZJDoMa8mAfhyukL_0GfPeApUaY2e44ZOzoYAkeEuDiwcs-9zoQ1fCyXhn0pCumGFXRilX9KjAPaYTzDvQMEllTy_ZViwTahuKaGtFVamZguBPdaeYC_0oybtTVNQCs8hGnffhNZOMASB-5pFs35MNxsDWTVIQksDee419jqpsbWLkh6rnanILO1O_ihwb-WpvRQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=CEfYwIyO0BkBhEHvexCrXOzbeJs4Jf-KJqNddD39mlS_sWd0v7kE0LBCZSUrTBFzH4EXMQTqpLbsTNK8QA-RQAsVCpUNN1_c6i0b4DMSe0196lV3aWi1wSjVreUFnRspWlS9NxmJau7uAvozSLhVRaWHhmHJGUtdxbra0vmr9cT3-Igk-eJTdJV-lLJUmam5TspC-YdheIxnZ_tFgnoTE_vMIFuVTjdbQZ8z9-xcU0_KLjM1bUid0ZK3Gp_DXa4MNuqO2_PDRH0Os4_6RIqcsF_0NwaPXkgvPhHrMyKtSWfJ3Ig1hPDGjg-l8aa5UeI-Muz0G3ZKH2uhYqWDQ2QnCQ\u0026h=6L8RVBPlIzPZ9d8M2C_674wf4Hn7vcmhEhIsxhJ_8As", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "c8248510-b950-4f15-8018-db548a8d5537" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "e9705f92-f401-4b79-b542-fd5f87dcdc18" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "e9705f92-f401-4b79-b542-fd5f87dcdc18" ], + "x-ms-correlation-request-id": [ "e9705f92-f401-4b79-b542-fd5f87dcdc18" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053626Z:e9705f92-f401-4b79-b542-fd5f87dcdc18" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 902ECDD44FEC47F1B168E7FF8936A381 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:26 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiZTY2YTA1ZWMtY2ZhYi00ZmFlLWE5MzMtZmZmNTVmYzRjOTE0In0=\",\"startTime\":\"2024-10-21T05:35:51.0000000Z\",\"endTime\":\"2024-10-21T05:35:57.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "c8248510-b950-4f15-8018-db548a8d5537" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "800df30c-433d-4dc4-8eff-532896e865c3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "800df30c-433d-4dc4-8eff-532896e865c3" ], + "x-ms-correlation-request-id": [ "800df30c-433d-4dc4-8eff-532896e865c3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053627Z:800df30c-433d-4dc4-8eff-532896e865c3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 27F982967BA441C082B6A0ADE78A2B10 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:26Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:27 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"02812d67-d7a0-47b9-8deb-c75f46ebb59f\"},\"etag\":\"\\\"2b000265-0000-0800-0000-6715e83d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg\",\"name\":\"psdnsresolverpolicyforrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-10-21T05:18:56.4474739Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:35:51.2392362Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg?api-version=2023-07-01-preview+5": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"domains\": [ \"contoso.com.\", \"example.com.\" ]\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "105" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9?api-version=2023-07-01-preview\u0026t=638650857884368667\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsG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lzD1OTs5W91lkN2m2QauImnhf56hPjzMvGYphtkeXgEoiQRrgIExDPZWh2zcOAgunu8PSH63cmRQibyVO_XwidklNtSGZ9cwL7RG7MOUYLRtVfsbQW0Xa5Q\u0026h=z7OSgN6MrWpFhzs2b30WI93CRLQ5-vRpecXoTt1JS7c" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "2b9bc967-7bf1-4421-a4d1-1d77fb97ab7d" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9?api-version=2023-07-01-preview\u0026t=638650857883899871\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHH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d84AYv8wYFO_HJinHpYnDjONL1oChCWsBxpUXlkc5uARjq4JUopzUH0cuUwwbjSwWpaKaK0sX1psVvCl0UISjKYao7lN5GVK5jAvZoGMki3A9lDFoxTABtbn4JglxB4Yh-jkhLYY0iFkONDtDnMGlNQ0avfwgt4CqYvxHilsu0_W0eHlDzb1eiB46v-X8arUcIA7U4B73dtoW2zvdEaqJ0jz38P4zDd4jBBx28sU7DLCyAigss016pOJODHPFtfOcyGzGlWJtngKv014qfQT4gKuJL7XHYnRw\u0026h=vbPgm_cKo_Ml-SGe_2QGME3YN_5oGiED7tytCANg9h4" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "2b9bc967-7bf1-4421-a4d1-1d77fb97ab7d" ], + "x-ms-correlation-request-id": [ "2b9bc967-7bf1-4421-a4d1-1d77fb97ab7d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053628Z:2b9bc967-7bf1-4421-a4d1-1d77fb97ab7d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6DD9DA6DC8794AE89454C811ABF224C3 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:27Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "637" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"7201cf93-0000-0800-0000-6715e85c0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\",\"name\":\"psdnsresolverdomainlistforrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:03.4480599Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:28.1868587Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9?api-version=2023-07-01-preview\u0026t=638650857883899871\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQy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jONL1oChCWsBxpUXlkc5uARjq4JUopzUH0cuUwwbjSwWpaKaK0sX1psVvCl0UISjKYao7lN5GVK5jAvZoGMki3A9lDFoxTABtbn4JglxB4Yh-jkhLYY0iFkONDtDnMGlNQ0avfwgt4CqYvxHilsu0_W0eHlDzb1eiB46v-X8arUcIA7U4B73dtoW2zvdEaqJ0jz38P4zDd4jBBx28sU7DLCyAigss016pOJODHPFtfOcyGzGlWJtngKv014qfQT4gKuJL7XHYnRw\u0026h=vbPgm_cKo_Ml-SGe_2QGME3YN_5oGiED7tytCANg9h4+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9?api-version=2023-07-01-preview\u0026t=638650857883899871\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp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XMaD-5a81mGlzhZc09Q\u0026s=g4hKWE4Dljh6ZhtPwBJtn-1VmE7cMWyeN3eNrKXmelPSkzAGI0n_Fd84AYv8wYFO_HJinHpYnDjONL1oChCWsBxpUXlkc5uARjq4JUopzUH0cuUwwbjSwWpaKaK0sX1psVvCl0UISjKYao7lN5GVK5jAvZoGMki3A9lDFoxTABtbn4JglxB4Yh-jkhLYY0iFkONDtDnMGlNQ0avfwgt4CqYvxHilsu0_W0eHlDzb1eiB46v-X8arUcIA7U4B73dtoW2zvdEaqJ0jz38P4zDd4jBBx28sU7DLCyAigss016pOJODHPFtfOcyGzGlWJtngKv014qfQT4gKuJL7XHYnRw\u0026h=vbPgm_cKo_Ml-SGe_2QGME3YN_5oGiED7tytCANg9h4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "0b0810fc-a279-4cc3-86c8-93d1efd4cd42" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "3cc9e6c9-0d90-4287-8370-3d6acababe62" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "3cc9e6c9-0d90-4287-8370-3d6acababe62" ], + "x-ms-correlation-request-id": [ "3cc9e6c9-0d90-4287-8370-3d6acababe62" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053633Z:3cc9e6c9-0d90-4287-8370-3d6acababe62" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: EC48E9FB34E54D16AA6E75CF5A8507E5 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:33Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlckRvbWFpbkxpc3QiLCJPcGVyYXRpb25JZCI6IjdjZDNiOThmLWI4ZDYtNDA4OS1hNGEyLTY3N2RjYTFiZTRiMiJ9\",\"startTime\":\"2024-10-21T05:36:28.0000000Z\",\"endTime\":\"2024-10-21T05:36:29.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "8" ], + "x-ms-client-request-id": [ "0b0810fc-a279-4cc3-86c8-93d1efd4cd42" ], + "CommandName": [ "New-AzDnsResolverDomainList" ], + "FullCommandName": [ "New-AzDnsResolverDomainList_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "2a618de0-8901-4f00-8ab8-76477c18f6da" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "2a618de0-8901-4f00-8ab8-76477c18f6da" ], + "x-ms-correlation-request-id": [ "2a618de0-8901-4f00-8ab8-76477c18f6da" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053634Z:2a618de0-8901-4f00-8ab8-76477c18f6da" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 120D4148A2E64C52A021D792251B7A07 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:34Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:33 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "672" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"domains\":[\"contoso.com.\",\"example.com.\"],\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"485dd4bd-fcd4-4471-9732-fa1629bbb643\"},\"etag\":\"\\\"3e00ef3d-0000-0800-0000-6715e85d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\",\"name\":\"psdnsresolverdomainlistforrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverDomainLists\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:03.4480599Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:28.1868587Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+8": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"action\": {\r\n \"actionType\": \"Block\",\r\n \"blockResponseCode\": \"SERVFAIL\"\r\n },\r\n \"priority\": 100,\r\n \"dnsResolverDomainLists\": [\r\n {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"\r\n }\r\n ],\r\n \"dnsSecurityRuleState\": \"Enabled\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "477" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9?api-version=2023-07-01-preview\u0026t=638650857952113957\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGSuOhfN3qaarwN9EAlXLqc4ZyKpsTkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDj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yAVZt9JMWNkaI6Xw\u0026h=K-gKWJvof17j3YLYfQU64UGtmYQ6FIV7f-oO7sFHbTA" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "05c52c3c-10e9-48b7-8f91-f49c4e33395f" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9?api-version=2023-07-01-preview\u0026t=638650857951957687\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNSU4Wq9sEeA5T24kazcgS2MUkzELH0I9dwu7g0dwJIuIJkoJjEzg1b1Q3Ie5HKHHNbjottJn7Q5LBS-9QtQyruuwaNTgSJpCoi4PBKVIOTBYL_Nv1wecmKmfWcT0mnhQE9zjhJTbcoN9hKSvAMqsDHtxWUFZosiw3JKIY0zb59CrVGS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A-217zIg2MAWCEHbzcRtaOBYsEhI4anUIqcWPr2E03mXYZaap74qxz9VnMkw0CSaHt9fJD95zA7E5nm8BH18fWaOxFrTDOrQ7JwLnTAySHMkHXV5VoC5JwRnVk1mR_cZCrKFrO2couituouy6Sk6EUSydtSojVSVzTpFrybg\u0026h=Xthz9i9aT95yhOa2-wDS1VeT9N_LIKFHZ9k-pcAjApE" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "05c52c3c-10e9-48b7-8f91-f49c4e33395f" ], + "x-ms-correlation-request-id": [ "05c52c3c-10e9-48b7-8f91-f49c4e33395f" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053635Z:05c52c3c-10e9-48b7-8f91-f49c4e33395f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6FF2203F4722421DBCFF94E715192D4C Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:34Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "990" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Updating\"},\"etag\":\"\\\"2b004569-0000-0800-0000-6715e8630000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg\",\"name\":\"psdnssecurityrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:11.0039319Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:35.0551451Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9?api-version=2023-07-01-preview\u0026t=638650857951957687\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0IxcLIUBW_I-9u-YsXOHk9WPMlUYHIFPgHW7A3FsSGfl9dd6YGapKoSSw0NkTpNXM58R54BBgLp7AhiWzK15D9T-XELNS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Q\u0026s=12X3q_AR-1hn-h3gqX954frYBoOoQGRBp9rB8ygeLafBvbRl4Ls4r_GuFJsrUrKFjSusbw6a5XYMvBrBNhH2ZlpGfN_Cg8fROZeybI0lBuirCuU63WAUnnxkak7pZsfDBGin_59-EddqsyCWRYHa8N4tuqOUUumv1MAifqFp35gFZ7A-217zIg2MAWCEHbzcRtaOBYsEhI4anUIqcWPr2E03mXYZaap74qxz9VnMkw0CSaHt9fJD95zA7E5nm8BH18fWaOxFrTDOrQ7JwLnTAySHMkHXV5VoC5JwRnVk1mR_cZCrKFrO2couituouy6Sk6EUSydtSojVSVzTpFrybg\u0026h=Xthz9i9aT95yhOa2-wDS1VeT9N_LIKFHZ9k-pcAjApE+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9?api-version=2023-07-01-preview\u0026t=638650857951957687\u0026c=MIIHpTCCBo2gAwIBAgITOgM6dTLGpzYZpvPtgQAEAzp1MjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwNjI2MDEzMjIxWhcNMjUwNjIxMDEzMjIxWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAPPPKY5bDN03KptFFhiyLIyn86BlrXYFIZWYXA-hY7_WbLyWN0Ix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RQByQ5NGpG1-z0MQ6nRpr9wWxUi-DsrVsD38NTMIPc2uei4Ivf6qnGRvOOj0fmsciWuTTEXMaD-5a81mGlzhZc09Q\u0026s=12X3q_AR-1hn-h3gqX954frYBoOoQGRBp9rB8ygeLafBvbRl4Ls4r_GuFJsrUrKFjSusbw6a5XYMvBrBNhH2ZlpGfN_Cg8fROZeybI0lBuirCuU63WAUnnxkak7pZsfDBGin_59-EddqsyCWRYHa8N4tuqOUUumv1MAifqFp35gFZ7A-217zIg2MAWCEHbzcRtaOBYsEhI4anUIqcWPr2E03mXYZaap74qxz9VnMkw0CSaHt9fJD95zA7E5nm8BH18fWaOxFrTDOrQ7JwLnTAySHMkHXV5VoC5JwRnVk1mR_cZCrKFrO2couituouy6Sk6EUSydtSojVSVzTpFrybg\u0026h=Xthz9i9aT95yhOa2-wDS1VeT9N_LIKFHZ9k-pcAjApE", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "ca33164f-a203-4c19-85b6-9333f473d7f4" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "ad1708b7-5073-4b8b-bea1-eedcfb49d879" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "ad1708b7-5073-4b8b-bea1-eedcfb49d879" ], + "x-ms-correlation-request-id": [ "ad1708b7-5073-4b8b-bea1-eedcfb49d879" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053640Z:ad1708b7-5073-4b8b-bea1-eedcfb49d879" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 51ACC1F2DE764586BB6A32214440A238 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:40Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNTZWN1cml0eVJ1bGUiLCJPcGVyYXRpb25JZCI6ImVhNjJjMTYwLTM4NzktNGExMS05YjI0LTM0M2ExZjk4MTg0YSJ9\",\"startTime\":\"2024-10-21T05:36:35.0000000Z\",\"endTime\":\"2024-10-21T05:36:37.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+10": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "11" ], + "x-ms-client-request-id": [ "ca33164f-a203-4c19-85b6-9333f473d7f4" ], + "CommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "New-AzDnsResolverPolicyDnsSecurityRule_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "bfb720ff-a929-4624-af98-d12953d75f25" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "bfb720ff-a929-4624-af98-d12953d75f25" ], + "x-ms-correlation-request-id": [ "bfb720ff-a929-4624-af98-d12953d75f25" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053640Z:bfb720ff-a929-4624-af98-d12953d75f25" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: E8C245C115AC4A90AF7B7C5B05DE850B Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:40Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:40 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":100,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"07002610-0000-0800-0000-6715e8650000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg\",\"name\":\"psdnssecurityrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:11.0039319Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:35.0551451Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+11": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"priority\": 101\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "49" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017971487\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5USCMC-vzAb1Ms0j0CAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwY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5w6DTiwlLSN_sXWbN1FgoX0mlTeCGZ4Rg\u0026h=2Gu_ZmHhdyyWLIKKuWXLbwUXRHFILiKIoqwPnKYs3IE" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "dd365c57-6bab-42ee-9bcb-2be80481a1e4" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W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VuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "dd365c57-6bab-42ee-9bcb-2be80481a1e4" ], + "x-ms-correlation-request-id": [ "dd365c57-6bab-42ee-9bcb-2be80481a1e4" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053641Z:dd365c57-6bab-42ee-9bcb-2be80481a1e4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9379507E19354670AB228C87971B662F Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:41Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:41 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "59" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":null,\"etag\":null,\"location\":null,\"tags\":null}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIH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TxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=a4APMVcYOMdZlWCoTIvt9z55CCpwzY4I4l8t5LlOavuq9MYUkZdR1F3ggotxVeBHcYk5Nu1SrqqY_0Iz9wtrT6MuAai2M1UfLaDJL0MgY4IroB2xtF5fWRaLXtLR-25gM-jUPDWJfh7q6fvqWV4rRrqksBgyU-DSqjuNNIX1UZwqi5Bu2zZvgTbVuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0+12": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0Nj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QBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTxRmjG8cPwKy19i2rhsvm-NfzRQTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBABJx3Gb3LtjBZ4x70SioNIk8ap3qwt2DMEu9dXEhi28jFB87BBsTCkNeuhGlLzHm7Ykx6xpUjJp4F2_qmJKrQjDH4U0VYT_yc8Ow5mxrFJcewgTXzwmwqXOodok5WWOUVP4Mmdp_O_3je1dVgw4TrdrypIZImBn2jVDrXQ79fFXTR-Td0XMOtWPDwreoMRagD769QW4hlGtVaZCqOAzyomfSc8PhDzKhllbZQrmP-UgiLU14SDsxwq6AHG413ClcJIDGfEsEKwlUyIIAKHDwSdbO41Zs7ZQG5k_eBlGTkr-5Zye8vT7OeGf1_mGZSme6otyTUL_3-6gJ282qCPXoflc\u0026s=a4APMVcYOMdZlWCoTIvt9z55CCpwzY4I4l8t5LlOavuq9MYUkZdR1F3ggotxVeBHcYk5Nu1SrqqY_0Iz9wtrT6MuAai2M1UfLaDJL0MgY4IroB2xtF5fWRaLXtLR-25gM-jUPDWJfh7q6fvqWV4rRrqksBgyU-DSqjuNNIX1UZwqi5Bu2zZvgTbVuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "13" ], + "x-ms-client-request-id": [ "b69f392e-980c-4f29-b7c1-92a573b833d5" ], + "CommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "636d6822-125b-4cef-a249-2f58e460cec3" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "636d6822-125b-4cef-a249-2f58e460cec3" ], + "x-ms-correlation-request-id": [ "636d6822-125b-4cef-a249-2f58e460cec3" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053647Z:636d6822-125b-4cef-a249-2f58e460cec3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3FD094FFAB7D479F98CC7ED5DBE1EC6C Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:36:46Z" ], + "Date": [ "Mon, 21 Oct 2024 05:36:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "514" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==\",\"startTime\":\"2024-10-21T05:36:41.0000000Z\",\"status\":\"InProgress\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmcVAnhr6Dvq3rWdBY9616kXvQ7E3eEvGqMn9W_NZTAqlaanfaACfITkIJZkgsSoJGw5US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g0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0+13": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==?api-version=2023-07-01-preview\u0026t=638650858017815263\u0026c=MIIHhzCCBm-gAwIBAgITHgVxvH65_BmPrKxDIgAABXG8fjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDYwHhcNMjQwOTI1MTkzNzA4WhcNMjUwMzI0MTkzNzA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKlHcl7gn1b6aLS1hLftgvWE8n-Z9liLRsNGgjYfyY_1N6TVDEHJTtctREIaCRDPEC-hePKBe7OS45JIAD6cl5AGU_dQlGd-3bBZeVfAPJFUnC910pwhDca2OXlf4LyB1KSofXaA4xDB6G7cHXRld_URCnol2LHQEGox0vBzaPz30AUB0ZhAatZgqhXy5qnroV3zbEZC3m4qLDSnG8QNEnw8Wv5GpYH_MxK9mgDPwoIObeDBnjtQonKzvItZ8jXwF-wEmc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RrqksBgyU-DSqjuNNIX1UZwqi5Bu2zZvgTbVuuVZ3GzSG_jeD5H8oPu7LZBxrCg0kP_tKft9ecL-ogRYuMFIlQNMV-_GyWW06UXTQwRsnwCFDxM3taEAsALKsFr5tx2LKhDQigQWlUfMBFzyVA7l3BM-F2Jq0P9T7DEujIHjbPp-WyqwIaayegBRUIDrfB_ywA\u0026h=-lQiBDHIXWOZIt8CsosZZ_Upl89VvaK9UGARhs4GRI0", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "14" ], + "x-ms-client-request-id": [ "b69f392e-980c-4f29-b7c1-92a573b833d5" ], + "CommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "a68efd3a-9f63-489b-8384-dd5840549f6d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "a68efd3a-9f63-489b-8384-dd5840549f6d" ], + "x-ms-correlation-request-id": [ "a68efd3a-9f63-489b-8384-dd5840549f6d" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053717Z:a68efd3a-9f63-489b-8384-dd5840549f6d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: BF0A02622EAD4CE5A154040086275BE6 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:37:17Z" ], + "Date": [ "Mon, 21 Oct 2024 05:37:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "554" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zU2VjdXJpdHlSdWxlIiwiT3BlcmF0aW9uSWQiOiI0NmRhYWQ2MS0xMmVmLTQ0NjgtODEyZi04YTYwYmE0MWQxZGQifQ==\",\"startTime\":\"2024-10-21T05:36:41.0000000Z\",\"endTime\":\"2024-10-21T05:36:47.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+14": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "15" ], + "x-ms-client-request-id": [ "b69f392e-980c-4f29-b7c1-92a573b833d5" ], + "CommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyDnsSecurityRule_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "c5d9eadc-b11d-4e0d-aaf0-b16945b2c451" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "c5d9eadc-b11d-4e0d-aaf0-b16945b2c451" ], + "x-ms-correlation-request-id": [ "c5d9eadc-b11d-4e0d-aaf0-b16945b2c451" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053718Z:c5d9eadc-b11d-4e0d-aaf0-b16945b2c451" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5127657724104CFD9BD4B0C98BD3D11F Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:37:17Z" ], + "Date": [ "Mon, 21 Oct 2024 05:37:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":101,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"07003610-0000-0800-0000-6715e86f0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg\",\"name\":\"psdnssecurityrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:11.0039319Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:41.7190192Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyDnsSecurityRule+[NoContext]+Updates a DNS Security Rule+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview+15": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "16" ], + "x-ms-client-request-id": [ "07c88218-3aed-4349-8fde-32283435582f" ], + "CommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule" ], + "FullCommandName": [ "Get-AzDnsResolverPolicyDnsSecurityRule_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.5", "Az.DnsResolver/0.2.9" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "72ccde64-f60d-4d88-8392-ad0d577b0da6" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "72ccde64-f60d-4d88-8392-ad0d577b0da6" ], + "x-ms-correlation-request-id": [ "72ccde64-f60d-4d88-8392-ad0d577b0da6" ], + "x-ms-routing-request-id": [ "WESTUS2:20241021T053718Z:72ccde64-f60d-4d88-8392-ad0d577b0da6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 7AED8D958B614995BA8756D2D6768B44 Ref B: CO6AA3150218025 Ref C: 2024-10-21T05:37:18Z" ], + "Date": [ "Mon, 21 Oct 2024 05:37:18 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"priority\":101,\"dnsResolverDomainLists\":[{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverDomainLists/psdnsresolverdomainlistforrulename5cd8dcg\"}],\"managedDomainLists\":[],\"action\":{\"actionType\":\"Block\",\"blockResponseCode\":\"SERVFAIL\"},\"dnsSecurityRuleState\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"07003610-0000-0800-0000-6715e86f0000\\\"\",\"location\":\"westus2\",\"tags\":null,\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforrulename5cd8dcg/dnsSecurityRules/psdnssecurityrulename5cd8dcg\",\"name\":\"psdnssecurityrulename5cd8dcg\",\"type\":\"Microsoft.Network/dnsResolverPolicies/dnsSecurityRules\",\"systemData\":{\"createdAt\":\"2024-10-21T05:19:11.0039319Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-10-21T05:36:41.7190192Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 new file mode 100644 index 000000000000..a2e7059d6cd1 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyDnsSecurityRule.Tests.ps1 @@ -0,0 +1,36 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDnsResolverPolicyDnsSecurityRule')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDnsResolverPolicyDnsSecurityRule.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzDnsResolverPolicyDnsSecurityRule' { + It 'Updates a DNS Security Rule' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforrulename5cd8dcg"; + $dnsSecurityRuleName = "psdnssecurityrulename5cd8dcg"; + $dnsResolverDomainListName = "psdnsresolverdomainlistforrulename5cd8dcg"; + $resourceGroupName = "powershell-test-rg-debug-update"; + $location = "westus2"; + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $domainList = New-AzDnsResolverDomainList -Name $dnsResolverDomainListName -ResourceGroupName $resourceGroupName -Location $location -Domain @("contoso.com.", "example.com.") + $securityRule = New-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -DnsResolverDomainList @{id = $domainList.Id;} -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 + + # ACT + $securityRule = Update-AzDnsResolverPolicyDnsSecurityRule -Name $dnsSecurityRuleName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Priority 101 + + # ASSERT + $updatedSecurityRule = Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName $dnsResolverPolicyName -DnsSecurityRuleName $dnsSecurityRuleName -ResourceGroupName $resourceGroupName + $securityRule.Priority | Should -Be 101 + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Recording.json b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Recording.json new file mode 100644 index 000000000000..e9010f26536a --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Recording.json @@ -0,0 +1,383 @@ +{ + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\"\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "29" ] + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjczZWYwMWEtOGRkNy00ZDdkLTlkMTctMjdiMjA5ODFjZWM3In0=?api-version=2023-07-01-preview\u0026t=638666057047959610\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLsrkJfAcS1JVW9eK95rbCcpnoxfCIvACpfE3-x1Try7abu0pvj7W3MxLzwRLZbeSobjW-O8IRGhWhTGSl-XmOCaNWOS4HD-YOl3Bf7qZNX9hTwlAIPlDyrykuPqC36M7vL1m8kuTjzaLYe7kXIOQZt0a189mNboVXw4DUwmQ3np7xH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PcGRqt0UlBU-UhlUjCird8Nc5E1G4QfLvBQfgWP0VUREKUlMYOGXvVd4CRizrTfJP4t-Ni-QL729BMpLcJo3pc7vgWPA992yVQVVKrPbe50ZtsSXUR21l7W4jFCIMs4LB1lUvG6pJG9pf7Q-NzKQLssfA2ZFs58pOAwHLgn_YVpw1fw\u0026h=DEERmJFNbvYHNanf-EQkKK3kw10D2GubZxLsYjvlNaU" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "739e5f82-0ad6-457e-a96d-4b42d9d73c1a" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjczZWYwMWEtOGRkNy00ZDdkLTlkMTctMjdiMjA5ODFjZWM3In0=?api-version=2023-07-01-preview\u0026t=638666057047802338\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLsrkJfAcS1JVW9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ld4DTV0F7DDhLE8fMSFATyVPvFkKi_c3RvK3UNnqM7qSv45ZhysUVQ9xfr8p2yDcwttFHLzLoBPilXL8ASr0ptD5XLdRmR9dLwXdm0jGMhiSjDBetd3kzNQcfOog5WQp5zm1IRv3honulGTyGiXwqqkBPp53Vgr9r0TJJKoI6xpTomhC9RJyergd28Wd97MRjEECsH-HmMeP9ix4i1Bn-_y9Iam_PFFUY9iYtro_DgITfvM0sGf6PFK60lG1FDDR-6YoIHByWUbNN5Q_J8Wy9vi2XcxDeZvbMQHhvNi-lWgh5NrGIG8mB5Rl2SjvHIOgGhhhF29N7XcALw\u0026h=qBO_1oJY5QvcU75NrCqK_KEmmUZbnTKZ7UlwZup6xXk" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "739e5f82-0ad6-457e-a96d-4b42d9d73c1a" ], + "x-ms-correlation-request-id": [ "739e5f82-0ad6-457e-a96d-4b42d9d73c1a" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194824Z:739e5f82-0ad6-457e-a96d-4b42d9d73c1a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 86785352C41946E8A2024742F341ED92 Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:23Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "581" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Updating\",\"resourceGuid\":null},\"etag\":\"\\\"bf042b66-0000-0800-0000-672d19880000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh\",\"name\":\"psdnsresolverpolicyforlinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-11-07T19:48:24.5145993Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-11-07T19:48:24.5145993Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjczZWYwMWEtOGRkNy00ZDdkLTlkMTctMjdiMjA5ODFjZWM3In0=?api-version=2023-07-01-preview\u0026t=638666057047802338\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLsrkJfAcS1JVW9eK95rbCcpnoxfCIvACpfE3-x1Try7abu0pvj7W3MxLzwRLZbeSobjW-O8I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xfr8p2yDcwttFHLzLoBPilXL8ASr0ptD5XLdRmR9dLwXdm0jGMhiSjDBetd3kzNQcfOog5WQp5zm1IRv3honulGTyGiXwqqkBPp53Vgr9r0TJJKoI6xpTomhC9RJyergd28Wd97MRjEECsH-HmMeP9ix4i1Bn-_y9Iam_PFFUY9iYtro_DgITfvM0sGf6PFK60lG1FDDR-6YoIHByWUbNN5Q_J8Wy9vi2XcxDeZvbMQHhvNi-lWgh5NrGIG8mB5Rl2SjvHIOgGhhhF29N7XcALw\u0026h=qBO_1oJY5QvcU75NrCqK_KEmmUZbnTKZ7UlwZup6xXk+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjczZWYwMWEtOGRkNy00ZDdkLTlkMTctMjdiMjA5ODFjZWM3In0=?api-version=2023-07-01-preview\u0026t=638666057047802338\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0C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k4qpHIU9NnzTWwFGLkwsrIY0vm04pKldQ\u0026s=NfPpGnE3ld4DTV0F7DDhLE8fMSFATyVPvFkKi_c3RvK3UNnqM7qSv45ZhysUVQ9xfr8p2yDcwttFHLzLoBPilXL8ASr0ptD5XLdRmR9dLwXdm0jGMhiSjDBetd3kzNQcfOog5WQp5zm1IRv3honulGTyGiXwqqkBPp53Vgr9r0TJJKoI6xpTomhC9RJyergd28Wd97MRjEECsH-HmMeP9ix4i1Bn-_y9Iam_PFFUY9iYtro_DgITfvM0sGf6PFK60lG1FDDR-6YoIHByWUbNN5Q_J8Wy9vi2XcxDeZvbMQHhvNi-lWgh5NrGIG8mB5Rl2SjvHIOgGhhhF29N7XcALw\u0026h=qBO_1oJY5QvcU75NrCqK_KEmmUZbnTKZ7UlwZup6xXk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "7ee28cdd-254c-44a0-8343-a598db89ebd6" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.6", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "024edef3-61a4-452b-a7a1-4dab194c8787" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "024edef3-61a4-452b-a7a1-4dab194c8787" ], + "x-ms-correlation-request-id": [ "024edef3-61a4-452b-a7a1-4dab194c8787" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194830Z:024edef3-61a4-452b-a7a1-4dab194c8787" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B696872B22A94DB7AF8FF2B7DDDE9B8A Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:29Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjczZWYwMWEtOGRkNy00ZDdkLTlkMTctMjdiMjA5ODFjZWM3In0=\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeSIsIk9wZXJhdGlvbklkIjoiMjczZWYwMWEtOGRkNy00ZDdkLTlkMTctMjdiMjA5ODFjZWM3In0=\",\"startTime\":\"2024-11-07T19:48:24.0000000Z\",\"endTime\":\"2024-11-07T19:48:29.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "7ee28cdd-254c-44a0-8343-a598db89ebd6" ], + "CommandName": [ "New-AzDnsResolverPolicy" ], + "FullCommandName": [ "New-AzDnsResolverPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.6", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "cceffdba-57bf-435c-9cfd-fe4ae39eb573" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "cceffdba-57bf-435c-9cfd-fe4ae39eb573" ], + "x-ms-correlation-request-id": [ "cceffdba-57bf-435c-9cfd-fe4ae39eb573" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194830Z:cceffdba-57bf-435c-9cfd-fe4ae39eb573" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B54371A8867D498BB7B3EEBB7356F48D Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:30Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "616" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"provisioningState\":\"Succeeded\",\"resourceGuid\":\"b89af9bd-fdd1-40a9-bd6d-07a0a2480e5e\"},\"etag\":\"\\\"20050a35-0000-0800-0000-672d198d0000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh\",\"name\":\"psdnsresolverpolicyforlinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies\",\"systemData\":{\"createdAt\":\"2024-11-07T19:48:24.5145993Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-11-07T19:48:24.5145993Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$PUT+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": "{\r\n \"location\": \"westus2\",\r\n \"properties\": {\r\n \"virtualNetwork\": {\r\n \"id\": \"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknamef2rcmjh\"\r\n }\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "279" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "a18d54f9-81c0-441b-b4ca-6877d88465b1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjdlN2Q1OTViLTI2NzAtNGFjNy05YmNlLTU2ZTM0ZmJhODEyMyJ9?api-version=2023-07-01-preview\u0026t=638666057122376674\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLsrkJfAcS1JVW9eK95rbCcpnoxfCIvACpfE3-x1Try7abu0pvj7W3MxLzwRLZbeSobjW-O8IRGhWhTGSl-XmOCaNWOS4HD-YOl3Bf7qZNX9hTwlAIPlDyrykuPqC36M7vL1m8kuTjzaLYe7kXIOQZt0a189mNboVXw4DUwmQ3np7xHNeffT8v9h2ThhoUKHzasq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QUJdVhRqQIozeav8g4A46Y8X4itzGg6Pj-OXCNudkLVfTEpSLMfIydQGRmYVCgQlRKIsvxpume6hDOvqcSVPZNGncWVwFQoclCI-5FfklPCcvn3PILFwFn9__yP365YV-8tA97sinPvX2RZtefYYUtaYg\u0026h=_EI16Uw1laSyZYL2B2HxEQ-Jm7eRW5cEA3WhBPbw36Q" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "a18d54f9-81c0-441b-b4ca-6877d88465b1" ], + "x-ms-correlation-request-id": [ "a18d54f9-81c0-441b-b4ca-6877d88465b1" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194832Z:a18d54f9-81c0-441b-b4ca-6877d88465b1" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: FC523A98209B4143999D439B17551564 Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:30Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "837" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknamef2rcmjh\"},\"provisioningState\":\"Creating\"},\"etag\":\"\\\"20057336-0000-0800-0000-672d19900000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh\",\"name\":\"psdnsresolverpolicylinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-11-07T19:48:31.8462059Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-11-07T19:48:31.8462059Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjdlN2Q1OTViLTI2NzAtNGFjNy05YmNlLTU2ZTM0ZmJhODEyMyJ9?api-version=2023-07-01-preview\u0026t=638666057122376674\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLsrkJfAcS1JVW9eK95rbCcpnoxfCIvACpfE3-x1Try7abu0pvj7W3MxLzwRLZbeSobjW-O8IRGhWhTGSl-XmOCaNWOS4HD-YOl3Bf7qZN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X38gtb1H503YhqqgEfIuIgI_50TZQao5GgUFVz4hnC2mCU8rp6oZpl0--FZg0JS8KiZluCzt7FuDaaGCVb0VJXPNWjQUJdVhRqQIozeav8g4A46Y8X4itzGg6Pj-OXCNudkLVfTEpSLMfIydQGRmYVCgQlRKIsvxpume6hDOvqcSVPZNGncWVwFQoclCI-5FfklPCcvn3PILFwFn9__yP365YV-8tA97sinPvX2RZtefYYUtaYg\u0026h=_EI16Uw1laSyZYL2B2HxEQ-Jm7eRW5cEA3WhBPbw36Q+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjdlN2Q1OTViLTI2NzAtNGFjNy05YmNlLTU2ZTM0ZmJhODEyMyJ9?api-version=2023-07-01-preview\u0026t=638666057122376674\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLs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026s=B4eVQK6p22xZ51ztBSgtPx8KvteVPqOvT8yS-_Fsd0JAHfB3uMzdihQvKGQnWKma5KsCuEFoJQ9R6JiILp0U7CF03tb2Pe1EPrcX38gtb1H503YhqqgEfIuIgI_50TZQao5GgUFVz4hnC2mCU8rp6oZpl0--FZg0JS8KiZluCzt7FuDaaGCVb0VJXPNWjQUJdVhRqQIozeav8g4A46Y8X4itzGg6Pj-OXCNudkLVfTEpSLMfIydQGRmYVCgQlRKIsvxpume6hDOvqcSVPZNGncWVwFQoclCI-5FfklPCcvn3PILFwFn9__yP365YV-8tA97sinPvX2RZtefYYUtaYg\u0026h=_EI16Uw1laSyZYL2B2HxEQ-Jm7eRW5cEA3WhBPbw36Q", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "2001b78c-ae03-433b-9761-381c205b79c8" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.6", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "5a27a0cb-07c4-4dc3-a3d1-09d34907f893" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "5a27a0cb-07c4-4dc3-a3d1-09d34907f893" ], + "x-ms-correlation-request-id": [ "5a27a0cb-07c4-4dc3-a3d1-09d34907f893" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194837Z:5a27a0cb-07c4-4dc3-a3d1-09d34907f893" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 78E1B9A439F048E295204D8508C5E0C1 Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:37Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:36 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjdlN2Q1OTViLTI2NzAtNGFjNy05YmNlLTU2ZTM0ZmJhODEyMyJ9\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiQ29udmVyZ2VEbnNSZXNvbHZlclBvbGljeUxpbmsiLCJPcGVyYXRpb25JZCI6IjdlN2Q1OTViLTI2NzAtNGFjNy05YmNlLTU2ZTM0ZmJhODEyMyJ9\",\"startTime\":\"2024-11-07T19:48:32.0000000Z\",\"endTime\":\"2024-11-07T19:48:33.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "2001b78c-ae03-433b-9761-381c205b79c8" ], + "CommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "New-AzDnsResolverPolicyVirtualNetworkLink_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.6", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "98522af8-2e98-4cfe-98c1-9ed57618130d" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "98522af8-2e98-4cfe-98c1-9ed57618130d" ], + "x-ms-correlation-request-id": [ "98522af8-2e98-4cfe-98c1-9ed57618130d" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194837Z:98522af8-2e98-4cfe-98c1-9ed57618130d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 914F0271330041D3AA6AB6BD176C1D3A Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:37Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:37 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "838" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknamef2rcmjh\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"20053f37-0000-0800-0000-672d19910000\\\"\",\"location\":\"westus2\",\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh\",\"name\":\"psdnsresolverpolicylinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-11-07T19:48:31.8462059Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-11-07T19:48:31.8462059Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$PATCH+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview+7": { + "Request": { + "Method": "PATCH", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": "{\r\n \"tags\": {\r\n \"keyi8svd\": \"valuei8svd\",\r\n \"key5luzk\": \"value5luzk\",\r\n \"key19ypf\": \"value19ypf\",\r\n \"keyp0e6h\": \"valuep0e6h\",\r\n \"key5m9jt\": \"value5m9jt\",\r\n \"key9qhfw\": \"value9qhfw\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "207" ] + } + }, + "Response": { + "StatusCode": 202, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationResults/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiJiYThiMWI1My1lM2JiLTQzOGUtODZmMS1lOWQzYmY1Njk2YTYifQ==?api-version=2023-07-01-preview\u0026t=638666057189011417\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLsrkJfAcS1JVW9eK95rbCcpnoxfCIvACpfE3-x1Try7abu0pvj7W3MxLzwRLZbeSobjW-O8IRGhWhTGSl-XmOCaNWOS4HD-YOl3Bf7qZNX9hTwlAIPlDyrykuPqC36M7vL1m8kuTjzaLYe7kXIOQZt0a189mNboVXw4DUwmQ3np7xHNeffT8v9h2ThhoUKHzasqM-35DkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBg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5vGlYRAtNNr2B-jKkycs0f-CrIlfZPuxjKUQKnYi2uhj1gsmf1j2BscJladil2VxFcA0vuQjcigMLYIyZaTrWXtbay5QEgBC7kMF1rIzogrXNy1uQ\u0026h=s_NwsSb_p-W7eV7x75pJWpARVRlG2xQZqR9l8pnWCH8" ], + "Retry-After": [ "5" ], + "x-ms-activity-id": [ "16e27ff9-7eae-458d-afb6-fe58e00b692a" ], + "Azure-AsyncOperation": [ "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiJiYThiMWI1My1lM2JiLTQzOGUtODZmMS1lOWQzYmY1Njk2YTYifQ==?api-version=2023-07-01-preview\u0026t=638666057189011417\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLsrkJfAcS1JVW9eK95rbCcpnoxfCIvACpfE3-x1Try7abu0pvj7W3MxLzwRLZbeSobjW-O8IR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Yxu6JDYsr8-QaH1GdGCEkHSo2xfu3AJvnUgxbQlLBuXyZKSKL7C-uNymVPRSaMtZmeGo74ewN7_AIk5mlWvs2Q2-rlAM1g-NHXejRbbSjB9A4gsUOLb_-p3AkGIVqgtx1DtRKg0tQpCZtZpo6V5PUV3rubI4ZH9PL0W4qcn9lRsBk0odmO0jBH1PXz4QaMq6A9Tclx5hHDtkeT7TJOJX-Cls5kK3fC43ln0SksT72lWFTzVTze5i4daWw3iqcipO4iyJ-mKpjQudeBEEKWeQ\u0026h=PIM30I3ckKMsdFs3EGSsfXzrVxjzPg7ptNEeo6HEbLo" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "11999" ], + "x-ms-request-id": [ "16e27ff9-7eae-458d-afb6-fe58e00b692a" ], + "x-ms-correlation-request-id": [ "16e27ff9-7eae-458d-afb6-fe58e00b692a" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194838Z:16e27ff9-7eae-458d-afb6-fe58e00b692a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 49C2CC1B9586455C9BDFF352B1C24897 Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:38Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:38 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3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HAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAKAKpLg2kX5vbfC_2FLAA3Io3R5jSdGVmub1FuRTHXJm4_N7DGemkHv_OF_8FoEGCeGHEPKqzuPxtE3ezqR6n7G7ff1aHgdo1DtfOoBvJcj5hPOv7Obh43vBxcRtcHiazbqZRUBepKPEydzjeYFl-yoMhIBDwftj6HUq9naOFEfomz8MIaMYTSm_eQgAM7Y1ZsIhxXlzM2csXzbKKnw6AWrgXmglYjIXez3mNRxDff603prp3lZy5rY3h-SjRLgFEJDtcBvZdisf2vk8B6fAOplf-m5UIElleMKWuOCVewG7i1Ylhfq3MGk4qpHIU9NnzTWwFGLkwsrIY0vm04pKldQ\u0026s=M1OdJSU9YW4klX1LXk4D3G_G_PL_GjVDlaL6bxBPaC5XJgtuOnH9uLtPW_IRffOM49Yxu6JDYsr8-QaH1GdGCEkHSo2xfu3AJvnUgxbQlLBuXyZKSKL7C-uNymVPRSaMtZmeGo74ewN7_AIk5mlWvs2Q2-rlAM1g-NHXejRbbSjB9A4gsUOLb_-p3AkGIVqgtx1DtRKg0tQpCZtZpo6V5PUV3rubI4ZH9PL0W4qcn9lRsBk0odmO0jBH1PXz4QaMq6A9Tclx5hHDtkeT7TJOJX-Cls5kK3fC43ln0SksT72lWFTzVTze5i4daWw3iqcipO4iyJ-mKpjQudeBEEKWeQ\u0026h=PIM30I3ckKMsdFs3EGSsfXzrVxjzPg7ptNEeo6HEbLo+8": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverPolicyOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiJiYThiMWI1My1lM2JiLTQzOGUtODZmMS1lOWQzYmY1Njk2YTYifQ==?api-version=2023-07-01-preview\u0026t=638666057189011417\u0026c=MIIHpTCCBo2gAwIBAgITOgOyrKG1I7-uwOPtkAAEA7KsoTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTIyMTEzNzIyWhcNMjUwMzIxMTEzNzIyWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMF0A2q8cqt5SgL8q53ouTKUTkU5kIPQmNDVLtYkpkKAR5SyOmJx1zZcSuWbH0e_tucXPs1E8fwCwqKnBxVDztyuNdElXqYqMn66hLjJG-gN0CzLHv7bSPqxJ4ZzZIAk3YCSuLhDLaNQneLsrkJfAcS1JVW9eK95rbCcpnoxfCIvACpfE3-x1Try7abu0pvj7W3MxLzwRLZbeSobjW-O8IRGhWhTGSl-XmOCaNWOS4HD-YOl3Bf7qZNX9hTwlAIPlDyrykuPqC36M7vL1m8kuTjzaLYe7kXIOQZt0a189mNboVXw4DUwmQ3np7xHNeffT8v9h2ThhoUKHzasqM-35DkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHaBggrB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MsdFs3EGSsfXzrVxjzPg7ptNEeo6HEbLo", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "5ef1ed1c-8fe7-48e7-b992-cd71d46d8cb0" ], + "CommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.6", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "706a3f51-d9e4-4662-a181-43d93eb8bd19" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "706a3f51-d9e4-4662-a181-43d93eb8bd19" ], + "x-ms-correlation-request-id": [ "706a3f51-d9e4-4662-a181-43d93eb8bd19" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194844Z:706a3f51-d9e4-4662-a181-43d93eb8bd19" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: D13A47360ACB43C181562238F78A402A Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:44Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:43 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "570" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/locations/westus2/dnsResolverOperationStatuses/eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiJiYThiMWI1My1lM2JiLTQzOGUtODZmMS1lOWQzYmY1Njk2YTYifQ==\",\"name\":\"eyJPcGVyYXRpb25UeXBlIjoiVXBzZXJ0RG5zUmVzb2x2ZXJQb2xpY3lMaW5rIiwiT3BlcmF0aW9uSWQiOiJiYThiMWI1My1lM2JiLTQzOGUtODZmMS1lOWQzYmY1Njk2YTYifQ==\",\"startTime\":\"2024-11-07T19:48:38.0000000Z\",\"endTime\":\"2024-11-07T19:48:39.0000000Z\",\"status\":\"Succeeded\"}", + "isContentBase64": false + } + }, + "Update-AzDnsResolverPolicyVirtualNetworkLink+[NoContext]+Updates a DNS resolver policy virtual network link+$GET+https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview+9": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh?api-version=2023-07-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "5ef1ed1c-8fe7-48e7-b992-cd71d46d8cb0" ], + "CommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink" ], + "FullCommandName": [ "Update-AzDnsResolverPolicyVirtualNetworkLink_UpdateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v12.0.0", "PSVersion/v7.4.6", "Az.DnsResolver/0.2.9" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-activity-id": [ "23461b04-c435-4b7f-9129-1de4e2c7e43b" ], + "x-ms-ratelimit-remaining-subscription-resource-requests": [ "499" ], + "x-ms-request-id": [ "23461b04-c435-4b7f-9129-1de4e2c7e43b" ], + "x-ms-correlation-request-id": [ "23461b04-c435-4b7f-9129-1de4e2c7e43b" ], + "x-ms-routing-request-id": [ "WESTUS:20241107T194844Z:23461b04-c435-4b7f-9129-1de4e2c7e43b" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 216876EEFA914651BE897F61A03ACBE2 Ref B: CO6AA3150218009 Ref C: 2024-11-07T19:48:44Z" ], + "Date": [ "Thu, 07 Nov 2024 19:48:44 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "991" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"properties\":{\"virtualNetwork\":{\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkforlinknamef2rcmjh\"},\"provisioningState\":\"Succeeded\"},\"etag\":\"\\\"2005383a-0000-0800-0000-672d19970000\\\"\",\"location\":\"westus2\",\"tags\":{\"keyi8svd\":\"valuei8svd\",\"key5luzk\":\"value5luzk\",\"key19ypf\":\"value19ypf\",\"keyp0e6h\":\"valuep0e6h\",\"key5m9jt\":\"value5m9jt\",\"key9qhfw\":\"value9qhfw\"},\"id\":\"/subscriptions/91ab65d2-c73f-4768-89d0-b061815f258b/resourceGroups/powershell-test-rg-debug-update/providers/Microsoft.Network/dnsResolverPolicies/psdnsresolverpolicyforlinknamef2rcmjh/virtualNetworkLinks/psdnsresolverpolicylinknamef2rcmjh\",\"name\":\"psdnsresolverpolicylinknamef2rcmjh\",\"type\":\"Microsoft.Network/dnsResolverPolicies/virtualNetworkLinks\",\"systemData\":{\"createdAt\":\"2024-11-07T19:48:31.8462059Z\",\"createdByType\":\"User\",\"lastModifiedAt\":\"2024-11-07T19:48:38.7292586Z\",\"lastModifiedByType\":\"User\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 new file mode 100644 index 000000000000..55f23b03eb98 --- /dev/null +++ b/src/DnsResolver/DnsResolver.Autorest/test/Update-AzDnsResolverPolicyVirtualNetworkLink.Tests.ps1 @@ -0,0 +1,44 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzDnsResolverPolicyVirtualNetworkLink')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzDnsResolverPolicyVirtualNetworkLink.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzDnsResolverPolicyVirtualNetworkLink' { + It 'Updates a DNS resolver policy virtual network link' { + # ARRANGE + $dnsResolverPolicyName = "psdnsresolverpolicyforlinknamef2rcmjh"; + $dnsResolverPolicyLinkName = "psdnsresolverpolicylinknamef2rcmjh"; + $virtualNetworkName = "psvirtualnetworkforlinknamef2rcmjh"; + $resourceGroupName = "powershell-test-rg-debug-update"; + $location = "westus2"; + $subscriptionId = "91ab65d2-c73f-4768-89d0-b061815f258b"; + $virtualNetworkId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.Network/virtualNetworks/$virtualNetworkName" + + if ($TestMode -eq "Record") + { + $defaultSubnet = New-AzVirtualNetworkSubnetConfig -Name "default" -AddressPrefix "10.0.0.0/24" + $vnet = New-AzVirtualNetwork -Name $virtualNetworkName -ResourceGroupName $resourceGroupName -Location $location -AddressPrefix "10.0.0.0/16" -Subnet $defaultSubnet + } + + $resolverPolicy = New-AzDnsResolverPolicy -Name $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location + $resolverPolicyLink = New-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Location $location -VirtualNetworkId $virtualNetworkId + $tag = GetRandomHashtable -size 5 + + # ACT + $updatedDnsResolverPolicyLink = Update-AzDnsResolverPolicyVirtualNetworkLink -Name $dnsResolverPolicyLinkName -DnsResolverPolicyName $dnsResolverPolicyName -ResourceGroupName $resourceGroupName -Tag $tag + + # ASSERT + $updatedDnsResolverPolicyLink.Tag.Count | Should -Be $tag.Count + } +} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/env.json b/src/DnsResolver/DnsResolver.Autorest/test/env.json index 009af519a710..e6d66f047d1a 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/env.json +++ b/src/DnsResolver/DnsResolver.Autorest/test/env.json @@ -1,317 +1,15 @@ { - "VirtualNetworkId35": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname359g3hke", - "DnsResolverName30": "psdnsresolvername30vboj51", - "SubnetId55": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname55413bl6/subnets/pssubnetname55j3s2wq", - "VirtualNetworkId57": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname571hzlmg", - "DnsResolverName3": "psdnsresolvername37zfnsj", - "DnsResolverName8": "psdnsresolvername8yrgaj3", - "VirtualNetworkId68": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname684fw3ls", - "InboundEnpointName20": "psinboundendpointname20kf1lz2", - "DnsResolverName50": "psdnsresolvername508klpag", - "SubnetId59": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59qp7ds4/subnets/pssubnetname59xko201", - "VirtualNetworkId67": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname676knc32", - "InboundEnpointName16": "psinboundendpointname16c8yguh", - "InboundEnpointNamePrefix": "psinboundendpointname", - "SubscriptionId": "0e5a46b1-de0b-4ec3-a5d7-dda908b4e076", - "InboundEnpointName65": "psinboundendpointname65l7q0w9", - "DnsResolverName26": "psdnsresolvername26kwngvj", - "InboundEnpointName12": "psinboundendpointname12dy75oz", - "InboundEnpointName25": "psinboundendpointname25c751i3", - "VirtualNetworkId2": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24ojhxt", - "UnpairedVirtualNetwork4": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired41jagm5", - "InboundEnpointName0": "psinboundendpointname03g7850", - "DnsResolverName14": "psdnsresolvername14ec85zr", - "InboundEnpointName3": "psinboundendpointname3clsn34", - "InboundEnpointName24": "psinboundendpointname24a1wn3i", - "SubnetId69": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname69xszewq/subnets/pssubnetname69colmx0", - "DnsResolverName19": "psdnsresolvername19sxylrw", - "InboundEnpointName66": "psinboundendpointname66ltwz52", - "SubnetId39": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname3912z9df/subnets/pssubnetname39lidp4h", - "VirtualNetworkNamePrefix": "psvirtualnetworkname", - "DnsResolverName33": "psdnsresolvername33dyopcj", - "InboundEnpointName36": "psinboundendpointname36ln2fa1", - "VirtualNetworkId33": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname334cbs9q", - "InboundEnpointName10": "psinboundendpointname10wgoy4l", - "InboundEnpointName42": "psinboundendpointname42dkjh0y", - "InboundEnpointName30": "psinboundendpointname30pr4oyv", - "SubnetId19": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19dsvi43/subnets/pssubnetname19f39dwe", - "DnsResolverName59": "psdnsresolvername59a8d3fx", - "DnsResolverName6": "psdnsresolvername6o6fy84", - "InboundEnpointName56": "psinboundendpointname56gnsodi", - "SubnetId64": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64n7vazg/subnets/pssubnetname64b2jd4y", - "MalformedVirtualNetworkErrorMessage": "Resource ID is not a valid virtual network resource ID", - "SubnetId47": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47m5yn27/subnets/pssubnetname479hdczu", - "InboundEnpointName37": "psinboundendpointname374fg3db", - "InboundEnpointName1": "psinboundendpointname14c0bdl", - "VirtualNetworkId37": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37v20gm6", - "InboundEnpointName17": "psinboundendpointname17ordng0", - "DnsResolverName32": "psdnsresolvername32ycukis", - "InboundEnpointName28": "psinboundendpointname28cwdu98", - "InboundEnpointName22": "psinboundendpointname22sica2r", - "VirtualNetworkId20": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20pa30vi", - "VirtualNetworkId51": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51psruyg", - "UnpairedVirtualNetwork8": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired8v4xey3", - "SubnetId17": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17pgtly6/subnets/pssubnetname17xkbapf", - "InboundEnpointName34": "psinboundendpointname34k51l2j", - "InboundEnpointName38": "psinboundendpointname38luke3p", - "SubnetId60": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60krwyjf/subnets/pssubnetname608t065z", - "VirtualNetworkId50": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname506pefvo", - "VirtualNetworkId52": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname520zrscv", - "InboundEnpointName7": "psinboundendpointname7kvreym", - "DnsResolverName20": "psdnsresolvername20yhdk8u", - "SubnetId10": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1036ftul/subnets/pssubnetname10v91s4r", - "UnpairedVirtualNetwork0": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired03nd5bs", - "VirtualNetworkId58": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58abifpx", - "DnsResolverName0": "psdnsresolvername0g2v4ik", - "VirtualNetworkId62": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62g6fukz", - "DnsResolverNameForInboundEndpointGet": "psdnsresolvername60689vyn", - "NRP_SIMULATOR_URI": "https://westus2.test.azuremresolver.net:9002", - "InboundEnpointName15": "psinboundendpointname1519fek4", - "DnsResolverName40": "psdnsresolvername40fp6ej5", - "SubnetId18": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18iz4deq/subnets/pssubnetname1830wa1d", - "InboundEnpointName47": "psinboundendpointname47ce78js", - "DnsResolverName47": "psdnsresolvername47a75h8j", - "SubnetId67": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname676knc32/subnets/pssubnetname67dxjb3s", - "DnsResolverName60": "psdnsresolvername60689vyn", - "InboundEnpointName35": "psinboundendpointname35zvam60", - "SubnetId54": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname549j710n/subnets/pssubnetname54b4smxn", - "InboundEnpointName5": "psinboundendpointname5nr3ecm", - "DnsResolverName68": "psdnsresolvername68xeflq6", - "DnsResolverName21": "psdnsresolvername218siqe5", - "DnsResolverName35": "psdnsresolvername350e6rg5", - "SubnetId25": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25bev7sw/subnets/pssubnetname25vrj741", - "VirtualNetworkId43": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43douipm", - "SubnetId57": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname571hzlmg/subnets/pssubnetname57y5qpd7", - "SubnetId58": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58abifpx/subnets/pssubnetname582juvpr", - "SubnetId38": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38l38410/subnets/pssubnetname38p89tg6", - "SubnetId45": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45ugefqp/subnets/pssubnetname45udefx3", - "InboundEnpointName68": "psinboundendpointname6858c94h", - "DnsResolverName45": "psdnsresolvername45z7t1ye", - "DnsResolverName54": "psdnsresolvername54ayxdc0", - "UnpairedVirtualNetwork10": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired104ug1wq", - "VirtualNetworkId40": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40wk6lt4", - "DnsResolverName39": "psdnsresolvername39q0ba3z", - "SubnetId66": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname66bej6la/subnets/pssubnetname66mrvd93", - "SubnetId33": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname334cbs9q/subnets/pssubnetname33qp19ct", - "DnsResolverName27": "psdnsresolvername27jr3iwn", - "DnsResolverName63": "psdnsresolvername63z1svwu", - "VirtualNetworkId17": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17pgtly6", - "VirtualNetworkId9": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9agzxuh", - "InboundEnpointName53": "psinboundendpointname53myizkw", - "DnsResolverName51": "psdnsresolvername51ki8ber", - "InboundEndpointNamePrefixForGet0": "inboundEndpointNameForGetd5pa8u", - "SubnetId70": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname70faz718/subnets/pssubnetname70fo52ql", - "VirtualNetworkId24": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2445yewv", - "DnsResolverName24": "psdnsresolvername24lpsfze", - "UnpairedVirtualNetwork1": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired1ig46cl", - "UnpairedVirtualNetwork7": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired7748dnu", - "SubnetId68": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname684fw3ls/subnets/pssubnetname68tvg8pq", - "SubnetId40": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40wk6lt4/subnets/pssubnetname40yazj2w", - "VirtualNetworkId48": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48w3dqo5", - "InboundEnpointName45": "psinboundendpointname45q1yvab", - "SubnetId26": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname261af732/subnets/pssubnetname261hlfkw", - "VirtualNetworkId59": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59qp7ds4", - "SubnetId32": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname322s1aud/subnets/pssubnetname323n7bvs", - "VirtualNetworkId13": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname13oij9fb", - "LocationForVirtualNetwork": "westus2", - "InboundEnpointName51": "psinboundendpointname512dwr19", - "VirtualNetworkId32": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname322s1aud", - "InboundEnpointName57": "psinboundendpointname57fcd9ty", - "SubnetId1": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1ery48g/subnets/pssubnetname14jkq6n", - "VirtualNetworkId29": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname296o0y8b", - "VirtualNetworkId12": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname12swtid0", - "DnsResolverName53": "psdnsresolvername53odhkxa", - "SubnetId44": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44g0tcmj/subnets/pssubnetname4485erfd", "ResourceLocation": "westus2", - "VirtualNetworkId11": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname11fn65bt", - "SubnetId5": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5i1otx7/subnets/pssubnetname5lysa9u", - "InboundEnpointName50": "psinboundendpointname50wyxiln", - "SubnetId36": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36bvwz7g/subnets/pssubnetname366jp5lz", - "InboundEnpointName29": "psinboundendpointname293mzwrj", - "DnsResolverName41": "psdnsresolvername41nbofa2", - "VirtualNetworkId39": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname3912z9df", - "VirtualNetworkId28": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28sqf4a7", - "SubnetId4": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4bnjorz/subnets/pssubnetname4gvhk80", - "DnsResolverName49": "psdnsresolvername4974yioa", - "InboundEnpointName52": "psinboundendpointname528vyzt7", - "VirtualNetworkId27": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27l71npa", - "SubnetId51": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51psruyg/subnets/pssubnetname512kwi6y", - "DnsResolverName28": "psdnsresolvername28govsmy", - "SubnetId61": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname618n3twp/subnets/pssubnetname61rzmco0", - "UnpairedVirtualNetwork9": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired9x3rov0", - "InboundEnpointName69": "psinboundendpointname690q2d36", - "VirtualNetworkId45": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45ugefqp", - "VirtualNetworkId1": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1ery48g", - "InboundEnpointName8": "psinboundendpointname8xvum4g", - "InboundEndpointNamePrefixForGet": "inboundEndpointNameForGet", - "DnsResolverName69": "psdnsresolvername69w26in4", - "DnsResolverName13": "psdnsresolvername1332dkwr", - "VirtualNetworkId6": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname6i064d2", - "DnsResolverName1": "psdnsresolvername1tp8o5f", - "InboundEnpointName49": "psinboundendpointname496d3ug9", - "SubnetId12": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname12swtid0/subnets/pssubnetname12lcymvj", - "InboundEnpointName6": "psinboundendpointname65m7qxu", - "InboundEnpointName18": "psinboundendpointname1807sogp", - "VirtualNetworkId26": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname261af732", - "VirtualNetworkId66": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname66bej6la", - "SubnetId35": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname359g3hke/subnets/pssubnetname35eawdry", - "VirtualNetworkId8": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname8mvb5qf", - "SubnetId20": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20pa30vi/subnets/pssubnetname20v76g4i", - "VirtualNetworkId18": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18iz4deq", - "SubnetId30": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname302mr9nh/subnets/pssubnetname305utljx", - "VirtualNetworkId47": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47m5yn27", - "VirtualNetworkId63": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname637w1hft", - "DnsResolverName29": "psdnsresolvername29ywmn5s", - "SubnetId42": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42msk8ix/subnets/pssubnetname42jrs9p7", - "InboundEndpointNamePrefixForGet1": "inboundEndpointNameForGetkcra69", - "DnsResolverName44": "psdnsresolvername444vsqwi", - "VirtualNetworkId0": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0rfj6iu", - "InboundEnpointName67": "psinboundendpointname671wkma8", - "SubnetId14": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname145jz3i1/subnets/pssubnetname14qfz0nk", - "DnsResolverName38": "psdnsresolvername38vefq5j", - "DnsResolverName52": "psdnsresolvername52ki8yh1", - "SubnetId24": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2445yewv/subnets/pssubnetname24ux2sin", - "InboundEnpointName60": "psinboundendpointname60m83rck", - "VirtualNetworkId49": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49mnpu8k", - "InboundEnpointName9": "psinboundendpointname9lhc5ed", - "SubnetId37": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37v20gm6/subnets/pssubnetname37j9upso", - "DnsResolverName9": "psdnsresolvername9zr38p4", - "VirtualNetworkId69": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname69xszewq", - "VirtualNetworkId14": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname145jz3i1", - "SubnetId56": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname566h0jia/subnets/pssubnetname563vt0ow", - "VirtualNetworkId65": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname65hsrmb1", - "InboundEnpointName26": "psinboundendpointname26q4cr38", - "VirtualNetworkId56": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname566h0jia", - "InboundEnpointName33": "psinboundendpointname33j5tunb", - "InboundEnpointName43": "psinboundendpointname43ulwasm", - "DnsResolverName70": "psdnsresolvername70lju81t", - "SubnetId63": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname637w1hft/subnets/pssubnetname637j0hol", - "InboundEnpointName32": "psinboundendpointname325gn49l", - "DnsResolverName22": "psdnsresolvername2278mvg2", - "DnsResolverName36": "psdnsresolvername366eajnv", - "SubnetId11": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname11fn65bt/subnets/pssubnetname119im2ad", - "InboundEnpointName21": "psinboundendpointname211kgvdb", - "DnsResolverName46": "psdnsresolvername46oepgkt", - "VirtualNetworkId16": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16mf3i1g", - "DnsResolverName15": "psdnsresolvername15m89hg2", - "SubnetId22": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22y01d6w/subnets/pssubnetname226u7f4y", - "VirtualNetworkId60": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60krwyjf", - "VirtualNetworkId25": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25bev7sw", - "InboundEnpointName23": "psinboundendpointname23ylz984", - "DnsResolverName62": "psdnsresolvername62xj5ywr", - "VirtualNetworkId61": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname618n3twp", - "SubnetId9": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9agzxuh/subnets/pssubnetname9uy63on", - "SubnetId15": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15rkzqo1/subnets/pssubnetname1530vhb4", - "Tenant": "f686d426-8d16-42db-81b7-ab578e110ccd", - "VirtualNetworkId36": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36bvwz7g", - "InboundEnpointName58": "psinboundendpointname58i05po8", - "UnpairedVirtualNetwork6": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired68fedpr", - "SubnetId3": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname3h4x6lw/subnets/pssubnetname3g78fix", - "DnsResolverName37": "psdnsresolvername37y5fql1", - "VirtualNetworkId46": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46zbwa0t", - "InboundEndpointNamePrefix": "psinboundendpointname", - "DnsResolverName10": "psdnsresolvername109grnzq", - "DnsResolverName12": "psdnsresolvername12haeznl", - "SubnetId2": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname24ojhxt/subnets/pssubnetname2se6t27", - "SubnetId0": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0rfj6iu/subnets/pssubnetname0j7xq9b", - "InboundEnpointName41": "psinboundendpointname41vyujft", - "SubnetId62": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62g6fukz/subnets/pssubnetname627rodkz", - "NumberOfInboundEndpointForGet": 3, - "VirtualNetworkId42": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42msk8ix", - "DnsResolverName7": "psdnsresolvername7wmfh2u", - "InboundEnpointName48": "psinboundendpointname48r2ojh5", - "SubnetId53": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname530qtmgb/subnets/pssubnetname53wi1rmn", - "InboundEnpointName2": "psinboundendpointname2zeq6u0", - "InboundEnpointName39": "psinboundendpointname396t5qew", - "SubnetId7": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname7qn1su4/subnets/pssubnetname7r5hog8", - "DnsResolverName56": "psdnsresolvername56shjpzf", - "VirtualNetworkId7": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname7qn1su4", - "DnsResolverName2": "psdnsresolvername2n2utpl", - "SubnetId31": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31q0aui9/subnets/pssubnetname31fr7dnp", - "DnsResolverName42": "psdnsresolvername42f1xos9", - "DnsResolverName17": "psdnsresolvername17oe08rd", - "DnsResolverName34": "psdnsresolvername34gf4ukd", - "VirtualNetworkId30": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname302mr9nh", - "VirtualNetworkId3": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname3h4x6lw", - "InboundEnpointName40": "psinboundendpointname4039fi0l", - "VirtualNetworkId54": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname549j710n", - "VirtualNetworkId19": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19dsvi43", - "InboundEnpointName31": "psinboundendpointname31j0pnqa", - "DnsResolverName5": "psdnsresolvername5lfvn16", - "InboundEnpointName4": "psinboundendpointname4m23xve", - "VirtualNetworkId23": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23qfz1n0", - "SubnetId23": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23qfz1n0/subnets/pssubnetname23b04wdk", - "SubnetId28": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28sqf4a7/subnets/pssubnetname28vm06ro", - "SubnetId8": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname8mvb5qf/subnets/pssubnetname8x0p1ci", - "InboundEnpointName64": "psinboundendpointname64lo4p2m", + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "MalformedVirtualNetworkErrorMessage": "Resource ID is not a valid virtual network resource ID", + "ResourceGroupName": "powershelldnsresolvertestrgktn1pw", + "SubscriptionId": "91ab65d2-c73f-4768-89d0-b061815f258b", "DnsResolverNamePrefix": "psdnsresolvername", - "DnsResolverName31": "psdnsresolvername31eld1wp", - "InboundEnpointName70": "psinboundendpointname705sz2ya", - "DnsResolverName67": "psdnsresolvername67zk0fmo", - "InboundEndpointNamePrefixForGet2": "inboundEndpointNameForGetob83qr", - "SubnetId52": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname520zrscv/subnets/pssubnetname52qs79uf", - "VirtualNetworkId38": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38l38410", - "VirtualNetworkId70": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname70faz718", - "VirtualNetworkId41": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41len0wo", - "InboundEnpointName61": "psinboundendpointname61fv08ol", - "VirtualNetworkId44": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44g0tcmj", - "VirtualNetworkId34": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34kb3xpc", - "DnsResolverName66": "psdnsresolvername66gj93i5", - "InboundEnpointName63": "psinboundendpointname63ly08j1", - "SubnetId41": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41len0wo/subnets/pssubnetname41u8is3x", - "SubnetNamePrefix": "pssubnetname", - "InboundEnpointName11": "psinboundendpointname117ey5wb", - "SubnetId65": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname65hsrmb1/subnets/pssubnetname65xy356o", - "SubnetId50": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname506pefvo/subnets/pssubnetname50um5wip", - "SubnetId34": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34kb3xpc/subnets/pssubnetname34xlo6fi", - "VirtualNetworkId15": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15rkzqo1", - "AddressPrefix": "40.121.0.0/16", - "DnsResolverName18": "psdnsresolvername182rfzon", - "InboundEnpointName55": "psinboundendpointname55pvocmx", - "SubnetId21": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21mwye30/subnets/pssubnetname21v134e2", - "SubnetId16": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16mf3i1g/subnets/pssubnetname16rcqfkt", - "UnpairedVirtualNetwork2": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired2scuvpa", - "InboundEnpointName62": "psinboundendpointname62abcjrs", - "DnsResolverName43": "psdnsresolvername43ws6r24", - "SubnetId27": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27l71npa/subnets/pssubnetname277ye0u9", - "InboundEnpointName19": "psinboundendpointname19wqt12z", - "DnsResolverName11": "psdnsresolvername11y26fis", - "DnsResolverName16": "psdnsresolvername16yv20os", - "DnsResolverName64": "psdnsresolvername64xlmb6r", - "InboundEnpointName13": "psinboundendpointname13d0jh27", - "SubnetId6": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname6i064d2/subnets/pssubnetname64ukyl3", - "DnsResolverName4": "psdnsresolvername49g0av1", - "VirtualNetworkId4": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4bnjorz", - "InboundEnpointName46": "psinboundendpointname46w4ksfm", - "SubnetId43": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43douipm/subnets/pssubnetname43rpycw4", - "UnpairedVirtualNetwork5": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired5w4jc9d", - "DnsResolverName25": "psdnsresolvername25w5e2yx", - "SubnetId49": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49mnpu8k/subnets/pssubnetname499ogduh", - "VirtualNetworkId31": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31q0aui9", - "SubnetId29": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname296o0y8b/subnets/pssubnetname29utg5d3", - "VirtualNetworkId55": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname55413bl6", - "DnsResolverName58": "psdnsresolvername58kmfas5", - "DnsResolverName48": "psdnsresolvername487l8tka", - "VirtualNetworkId10": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1036ftul", - "InboundEnpointName27": "psinboundendpointname27xbaj9c", - "InboundEnpointName54": "psinboundendpointname54oebr7k", - "DnsResolverName57": "psdnsresolvername57084gxj", - "SubnetId13": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname13oij9fb/subnets/pssubnetname136ntuz1", - "VirtualNetworkId64": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64n7vazg", + "VirtualNetworkNamePrefix": "psvirtualnetworkname", "SuccessProvisioningState": "Succeeded", - "InboundEnpointName14": "psinboundendpointname14rg1tji", - "DnsResolverName61": "psdnsresolvername61mxn1oi", - "InboundEnpointName59": "psinboundendpointname59jnys87", - "DnsResolverName55": "psdnsresolvername55cvt1ra", - "VirtualNetworkId22": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22y01d6w", - "InboundEnpointName44": "psinboundendpointname44f4eb5w", - "ResourceGroupName": "powershell-test-rg", - "SubnetId48": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48w3dqo5/subnets/pssubnetname48bqr4ud", - "DnsResolverName65": "psdnsresolvername65wvrh9x", - "VirtualNetworkId21": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21mwye30", - "VirtualNetworkId53": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname530qtmgb", - "SubnetId46": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname46zbwa0t/subnets/pssubnetname46ry5et3", - "VirtualNetworkId5": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5i1otx7", - "UnpairedVirtualNetwork3": "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworknameunpaired3by902u", - "DnsResolverName23": "psdnsresolvername23bon8m1" + "InboundEnpointNamePrefix": "psinboundendpointname", + "LocationForVirtualNetwork": "westus2", + "SubnetNamePrefix": "pssubnetname", + "InboundEndpointNamePrefix": "psinboundendpointname", + "AddressPrefix": "40.121.0.0/16" } diff --git a/src/DnsResolver/DnsResolver.Autorest/test/localEnv.json b/src/DnsResolver/DnsResolver.Autorest/test/localEnv.json deleted file mode 100644 index e87538a320aa..000000000000 --- a/src/DnsResolver/DnsResolver.Autorest/test/localEnv.json +++ /dev/null @@ -1,306 +0,0 @@ -{ - "InboundEnpointName51": "psinboundendpointname517xu1km", - "NRP_SIMULATOR_URI": "https://eastus2.test.azuremresolver.net:9002", - "DnsResolverName21": "psdnsresolvername21ghsc97", - "DnsResolverName63": "psdnsresolvername63gi3cxs", - "DnsResolverName36": "psdnsresolvername36z26hs5", - "SubnetId34": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34h9a8zc/subnets/pssubnetname34n15cze", - "DnsResolverName37": "psdnsresolvername37e7guhj", - "VirtualNetworkNamePrefix": "psvirtualnetworkname", - "SubnetId48": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48tqzly6/subnets/pssubnetname485fxv1a", - "DnsResolverName22": "psdnsresolvername224nkhve", - "AddressPrefix": "40.121.0.0/16", - "VirtualNetworkId57": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57a2bg79", - "VirtualNetworkId46": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname465reqi1", - "SubnetId53": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname53zdp3i7/subnets/pssubnetname53ax3kjs", - "DnsResolverNamePrefix": "psdnsresolvername", - "DnsResolverName68": "psdnsresolvername68e0lrux", - "DnsResolverName16": "psdnsresolvername16xkf1g9", - "InboundEnpointName24": "psinboundendpointname24yf7zlx", - "SubnetId41": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41uo246f/subnets/pssubnetname41roa807", - "DnsResolverName23": "psdnsresolvername232svq3r", - "DnsResolverName41": "psdnsresolvername411bjz2i", - "SubnetId23": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23d24bl5/subnets/pssubnetname237mjenz", - "InboundEnpointName57": "psinboundendpointname57f2cz6b", - "SubnetId1": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1s8z4jm/subnets/pssubnetname1qd6r28", - "VirtualNetworkId49": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49tdblh9", - "InboundEnpointNamePrefix": "psinboundendpointname", - "DnsResolverName3": "psdnsresolvername3bavxjd", - "VirtualNetworkId61": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname61a3vlie", - "InboundEnpointName62": "psinboundendpointname627i9qob", - "DnsResolverName66": "psdnsresolvername66q9hi7v", - "DnsResolverName19": "psdnsresolvername19zeyqtp", - "DnsResolverName0": "psdnsresolvername0zo2di4", - "VirtualNetworkId12": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname12p8ea6g", - "SubnetId28": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28bsk2q9/subnets/pssubnetname284wlvm9", - "VirtualNetworkId64": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64yj4ihb", - "VirtualNetworkId14": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname14rn6fhj", - "SubnetId51": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51zx0mky/subnets/pssubnetname51ew0b97", - "DnsResolverName65": "psdnsresolvername65uka54b", - "SubnetId26": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname26cpyfrv/subnets/pssubnetname26c825dp", - "DnsResolverName67": "psdnsresolvername67cdv2xe", - "InboundEnpointName23": "psinboundendpointname23nhfgwv", - "VirtualNetworkId33": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname333sj6lu", - "InboundEnpointName55": "psinboundendpointname5523w68j", - "InboundEnpointName67": "psinboundendpointname67cpi3qk", - "DnsResolverName51": "psdnsresolvername514jy7ri", - "SuccessProvisioningState": "Succeeded", - "DnsResolverName60": "psdnsresolvername60yp9xsd", - "VirtualNetworkId42": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42r94dl3", - "VirtualNetworkId67": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname67rykhif", - "DnsResolverName11": "psdnsresolvername11oayx67", - "InboundEnpointName40": "psinboundendpointname40gyi2wz", - "VirtualNetworkId24": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2431m8dh", - "InboundEnpointName54": "psinboundendpointname546m25uc", - "DnsResolverName30": "psdnsresolvername30a6w9fv", - "DnsResolverName10": "psdnsresolvername108ment3", - "SubnetId8": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname8jkdo7z/subnets/pssubnetname8om85ve", - "InboundEnpointName53": "psinboundendpointname53cm86ao", - "InboundEnpointName21": "psinboundendpointname21gkt94b", - "VirtualNetworkId54": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname546j5na7", - "VirtualNetworkId6": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname68ld7tm", - "InboundEnpointName11": "psinboundendpointname11t53yid", - "DnsResolverName40": "psdnsresolvername40sm9tgn", - "InboundEnpointName36": "psinboundendpointname364hf5r3", - "SubnetId2": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2c7bwqj/subnets/pssubnetname218dqky", - "InboundEnpointName46": "psinboundendpointname46ei8kw7", - "SubnetId50": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50re1dom/subnets/pssubnetname50hnti7c", - "SubnetId61": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname61a3vlie/subnets/pssubnetname61uh46qf", - "VirtualNetworkId52": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname52gz370y", - "SubnetId65": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname65spr471/subnets/pssubnetname65k2yfai", - "VirtualNetworkId34": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname34h9a8zc", - "SubnetId38": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38d2ogwc/subnets/pssubnetname38t8x9q0", - "InboundEnpointName25": "psinboundendpointname25e5aqlk", - "DnsResolverName64": "psdnsresolvername64wqtxph", - "VirtualNetworkId53": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname53zdp3i7", - "VirtualNetworkId18": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18j4z0rw", - "DnsResolverName14": "psdnsresolvername146upq1f", - "DnsResolverName27": "psdnsresolvername278uyif5", - "SubnetId58": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58pe3yc7/subnets/pssubnetname58xg8tev", - "DnsResolverName35": "psdnsresolvername35pcs4r5", - "VirtualNetworkId26": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname26cpyfrv", - "DnsResolverName62": "psdnsresolvername62c02xfq", - "VirtualNetworkId17": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17wjo1u9", - "VirtualNetworkId23": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname23d24bl5", - "VirtualNetworkId45": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45sktc49", - "InboundEnpointName18": "psinboundendpointname18ogc3it", - "DnsResolverName46": "psdnsresolvername46mferw3", - "SubnetId52": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname52gz370y/subnets/pssubnetname5247nsqa", - "InboundEnpointName68": "psinboundendpointname688dqzuc", - "InboundEnpointName37": "psinboundendpointname370tlnrh", - "SubnetId3": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname328d4rt/subnets/pssubnetname3x4gotz", - "SubnetId55": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5521tioe/subnets/pssubnetname55x1d4q2", - "InboundEnpointName45": "psinboundendpointname45ivh2xb", - "InboundEnpointName14": "psinboundendpointname14kzsq73", - "InboundEnpointName41": "psinboundendpointname41rw4a65", - "SubnetId60": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60izcphd/subnets/pssubnetname60syrija", - "DnsResolverNameForInboundEndpointGet": "psdnsresolvername60yp9xsd", - "DnsResolverName17": "psdnsresolvername177wdnvc", - "SubnetId66": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname66j12m6w/subnets/pssubnetname66bu2p7w", - "SubnetId56": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname56cs9i4w/subnets/pssubnetname56q40r8x", - "VirtualNetworkId0": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0dk5ary", - "DnsResolverName45": "psdnsresolvername458boamd", - "InboundEnpointName61": "psinboundendpointname616ckq0j", - "VirtualNetworkId16": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16garti2", - "InboundEnpointName12": "psinboundendpointname122ejdus", - "InboundEnpointName60": "psinboundendpointname60xzio7u", - "VirtualNetworkId22": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22j87mrb", - "InboundEnpointName44": "psinboundendpointname44omi16u", - "SubnetId69": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname69dma3se/subnets/pssubnetname694vyrzm", - "SubnetId42": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname42r94dl3/subnets/pssubnetname42l3yg2k", - "VirtualNetworkId3": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname328d4rt", - "InboundEnpointName13": "psinboundendpointname13j2acmb", - "DnsResolverName15": "psdnsresolvername15bdw1jh", - "InboundEndpointNamePrefixForGet": "inboundEndpointNameForGet", - "SubnetId11": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname11idan0c/subnets/pssubnetname11tnsby6", - "DnsResolverName53": "psdnsresolvername5318pjum", - "InboundEnpointName48": "psinboundendpointname480j9dl6", - "LocationForVirtualNetwork": "westus2", - "SubnetId33": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname333sj6lu/subnets/pssubnetname33y7l1nv", - "VirtualNetworkId48": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname48tqzly6", - "ResourceGroupName": "powershelldnsresolvertestrg90enl5", - "SubnetId5": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57t2a3b/subnets/pssubnetname5za1f0y", - "VirtualNetworkId11": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname11idan0c", - "SubnetId54": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname546j5na7/subnets/pssubnetname54pg28iz", - "DnsResolverName56": "psdnsresolvername56otdfga", - "DnsResolverName70": "psdnsresolvername70opuvqj", - "DnsResolverName48": "psdnsresolvername48bh6epv", - "VirtualNetworkId36": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36p0v95r", - "InboundEnpointName0": "psinboundendpointname0z1h68w", - "SubnetId24": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2431m8dh/subnets/pssubnetname243bs1nc", - "DnsResolverName24": "psdnsresolvername24fa3d1s", - "DnsResolverName1": "psdnsresolvername113gqfk", - "VirtualNetworkId68": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname68v2q7un", - "InboundEnpointName32": "psinboundendpointname323fbkh0", - "VirtualNetworkId55": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname5521tioe", - "VirtualNetworkId62": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62f0b7lv", - "SubnetId10": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname10pm12u6/subnets/pssubnetname105djtpr", - "SubnetId40": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40sld1ek/subnets/pssubnetname407legdt", - "InboundEnpointName15": "psinboundendpointname1582puzs", - "DnsResolverName26": "psdnsresolvername269f6d7s", - "SubnetId9": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9jmx14h/subnets/pssubnetname997qj4u", - "SubnetId7": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname7ebkyg1/subnets/pssubnetname7c8h7mg", - "InboundEnpointName16": "psinboundendpointname16h0yksc", - "InboundEndpointNamePrefixForGet2": "inboundEndpointNameForGetlgwuna", - "SubnetId44": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44fong13/subnets/pssubnetname44i3klf4", - "SubnetId20": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20ueaf6m/subnets/pssubnetname20jx5sbm", - "VirtualNetworkId9": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname9jmx14h", - "MalformedVirtualNetworkErrorMessage": "Resource ID is not a valid virtual network resource ID", - "DnsResolverName58": "psdnsresolvername5852dwlj", - "InboundEnpointName6": "psinboundendpointname6zlhirg", - "DnsResolverName6": "psdnsresolvername60nlkxp", - "VirtualNetworkId69": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname69dma3se", - "SubscriptionId": "ea40042d-63d8-4d02-9261-fb31450e6c67", - "VirtualNetworkId8": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname8jkdo7z", - "VirtualNetworkId30": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30cjb4l2", - "InboundEnpointName26": "psinboundendpointname26k9j2om", - "InboundEnpointName17": "psinboundendpointname17t1jpoe", - "SubnetNamePrefix": "pssubnetname", - "DnsResolverName5": "psdnsresolvername57c6gsa", - "VirtualNetworkId10": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname10pm12u6", - "Tenant": "f686d426-8d16-42db-81b7-ab578e110ccd", - "DnsResolverName43": "psdnsresolvername43ljzrpw", - "InboundEnpointName34": "psinboundendpointname347bz6mp", - "InboundEnpointName35": "psinboundendpointname35l1rovx", - "InboundEnpointName66": "psinboundendpointname662m1ldo", - "InboundEnpointName33": "psinboundendpointname33qhw1l0", - "SubnetId57": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57a2bg79/subnets/pssubnetname578kvbwc", - "SubnetId17": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname17wjo1u9/subnets/pssubnetname17nvsofc", - "VirtualNetworkId31": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31bd72sc", - "DnsResolverName55": "psdnsresolvername55k5i62b", - "VirtualNetworkId29": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29hxjuol", - "InboundEnpointName22": "psinboundendpointname22dz0ah2", - "VirtualNetworkId39": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39zyp0ts", - "InboundEnpointName59": "psinboundendpointname59knpo4e", - "VirtualNetworkId4": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4cf5eqy", - "InboundEnpointName27": "psinboundendpointname273hxcbn", - "DnsResolverName31": "psdnsresolvername31vby9dc", - "InboundEnpointName31": "psinboundendpointname31ongdw4", - "SubnetId21": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21s76nij/subnets/pssubnetname2110knq5", - "VirtualNetworkId21": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname21s76nij", - "DnsResolverName57": "psdnsresolvername57w1i26t", - "VirtualNetworkId37": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37bpaj1o", - "VirtualNetworkId43": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43zxk74g", - "InboundEnpointName28": "psinboundendpointname28j28wn5", - "VirtualNetworkId50": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname50re1dom", - "SubnetId15": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15ugkiqc/subnets/pssubnetname154cjla2", - "DnsResolverName54": "psdnsresolvername54lhqfix", - "DnsResolverName8": "psdnsresolvername8hl6v1i", - "InboundEnpointName49": "psinboundendpointname49124jyv", - "DnsResolverName29": "psdnsresolvername29a4b7z9", - "InboundEnpointName63": "psinboundendpointname636bhrpe", - "VirtualNetworkId20": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname20ueaf6m", - "InboundEnpointName50": "psinboundendpointname501xtmqh", - "VirtualNetworkId15": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname15ugkiqc", - "DnsResolverName34": "psdnsresolvername34zfp9nx", - "SubnetId46": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname465reqi1/subnets/pssubnetname46hyzix7", - "InboundEnpointName9": "psinboundendpointname9lenwgi", - "DnsResolverName59": "psdnsresolvername59ke0azh", - "SubnetId37": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname37bpaj1o/subnets/pssubnetname370blsyh", - "SubnetId68": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname68v2q7un/subnets/pssubnetname68myairl", - "InboundEndpointNamePrefixForGet0": "inboundEndpointNameForGetr7foq9", - "InboundEnpointName2": "psinboundendpointname2gf3rcv", - "VirtualNetworkId5": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname57t2a3b", - "VirtualNetworkId40": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname40sld1ek", - "DnsResolverName2": "psdnsresolvername2vl5i0j", - "VirtualNetworkId58": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname58pe3yc7", - "VirtualNetworkId25": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25i3rzxq", - "SubnetId19": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19nqf1dy/subnets/pssubnetname1920aw65", - "SubnetId45": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname45sktc49/subnets/pssubnetname45q7k4d0", - "InboundEnpointName20": "psinboundendpointname20cvxpny", - "NumberOfInboundEndpointForGet": 3, - "InboundEnpointName52": "psinboundendpointname528n6re2", - "DnsResolverName49": "psdnsresolvername49icuv05", - "DnsResolverName28": "psdnsresolvername289zj10n", - "InboundEnpointName56": "psinboundendpointname56iel2u4", - "SubnetId59": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59v8wkde/subnets/pssubnetname59r6jmcp", - "DnsResolverName44": "psdnsresolvername44ircth7", - "InboundEnpointName38": "psinboundendpointname38te7c32", - "VirtualNetworkId13": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname13kr8d0e", - "DnsResolverName32": "psdnsresolvername324wtj1u", - "SubnetId29": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname29hxjuol/subnets/pssubnetname298e65al", - "InboundEnpointName30": "psinboundendpointname304jz5u3", - "InboundEnpointName8": "psinboundendpointname8iu015w", - "SubnetId39": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname39zyp0ts/subnets/pssubnetname39wbn30x", - "DnsResolverName69": "psdnsresolvername69p5k3sr", - "InboundEnpointName10": "psinboundendpointname10u5lxjg", - "InboundEnpointName64": "psinboundendpointname64ihmcq1", - "DnsResolverName18": "psdnsresolvername18w6ujeb", - "InboundEnpointName65": "psinboundendpointname65fai35u", - "VirtualNetworkId32": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname325ogwmh", - "SubnetId31": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname31bd72sc/subnets/pssubnetname311y8dix", - "SubnetId22": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname22j87mrb/subnets/pssubnetname22g4mnki", - "VirtualNetworkId19": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname19nqf1dy", - "VirtualNetworkId27": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27rqwvt6", - "SubnetId6": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname68ld7tm/subnets/pssubnetname6ht67id", - "InboundEndpointNamePrefixForGet1": "inboundEndpointNameForGet4e0wyc", - "DnsResolverName7": "psdnsresolvername7j2fehw", - "SubnetId30": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname30cjb4l2/subnets/pssubnetname30vat6p2", - "DnsResolverName38": "psdnsresolvername38b43q7j", - "DnsResolverName13": "psdnsresolvername13ul4maj", - "VirtualNetworkId41": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname41uo246f", - "DnsResolverName4": "psdnsresolvername4h6e15u", - "DnsResolverName20": "psdnsresolvername208w0z4a", - "InboundEnpointName7": "psinboundendpointname7mfl98u", - "DnsResolverName9": "psdnsresolvername9zquahj", - "InboundEnpointName19": "psinboundendpointname196wknuc", - "InboundEnpointName70": "psinboundendpointname70dxiatz", - "SubnetId67": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname67rykhif/subnets/pssubnetname67dex3j6", - "InboundEnpointName1": "psinboundendpointname1njy0p8", - "InboundEnpointName43": "psinboundendpointname43l4e59m", - "SubnetId13": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname13kr8d0e/subnets/pssubnetname131ew4ju", - "InboundEnpointName4": "psinboundendpointname426xaq3", - "SubnetId62": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname62f0b7lv/subnets/pssubnetname62x5gjbk", - "SubnetId70": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname709brgtv/subnets/pssubnetname70knpuzq", - "InboundEnpointName42": "psinboundendpointname4235vr2h", - "VirtualNetworkId60": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname60izcphd", - "DnsResolverName12": "psdnsresolvername12w8ix62", - "DnsResolverName39": "psdnsresolvername39tqgwj7", - "VirtualNetworkId38": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname38d2ogwc", - "DnsResolverName61": "psdnsresolvername612uakqw", - "VirtualNetworkId2": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname2c7bwqj", - "InboundEnpointName69": "psinboundendpointname69zsp1du", - "ResourceLocation": "eastus2", - "DnsResolverName47": "psdnsresolvername47ep6cgl", - "SubnetId12": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname12p8ea6g/subnets/pssubnetname12dks0ie", - "SubnetId32": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname325ogwmh/subnets/pssubnetname329lycek", - "SubnetId4": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname4cf5eqy/subnets/pssubnetname430o29s", - "SubnetId16": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16garti2/subnets/pssubnetname16gol43x", - "SubnetId63": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63egwvk6/subnets/pssubnetname63kxsuzb", - "DnsResolverName33": "psdnsresolvername33opy4uv", - "SubnetId49": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname49tdblh9/subnets/pssubnetname49nhp4a0", - "DnsResolverName42": "psdnsresolvername42483rlh", - "InboundEnpointName58": "psinboundendpointname5809c5e4", - "SubnetId14": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname14rn6fhj/subnets/pssubnetname14e6qzh2", - "SubnetId0": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname0dk5ary/subnets/pssubnetname0fl1hze", - "VirtualNetworkId28": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname28bsk2q9", - "InboundEnpointName5": "psinboundendpointname5kfn0md", - "SubnetId35": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname35w5iz2y/subnets/pssubnetname35jple60", - "VirtualNetworkId56": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname56cs9i4w", - "VirtualNetworkId70": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname709brgtv", - "VirtualNetworkId65": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname65spr471", - "VirtualNetworkId47": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47e87x3j", - "DnsResolverName25": "psdnsresolvername25izd91l", - "InboundEnpointName3": "psinboundendpointname33qhkc1", - "VirtualNetworkId66": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname66j12m6w", - "VirtualNetworkId1": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname1s8z4jm", - "VirtualNetworkId59": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname59v8wkde", - "SubnetId64": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname64yj4ihb/subnets/pssubnetname64u6h8mk", - "SubnetId43": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname43zxk74g/subnets/pssubnetname43qfr128", - "VirtualNetworkId44": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname44fong13", - "VirtualNetworkId35": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname35w5iz2y", - "InboundEnpointName29": "psinboundendpointname29bfndwh", - "VirtualNetworkId63": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname63egwvk6", - "DnsResolverName52": "psdnsresolvername52tplhjz", - "VirtualNetworkId7": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname7ebkyg1", - "VirtualNetworkId51": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname51zx0mky", - "SubnetId36": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname36p0v95r/subnets/pssubnetname36d3zlf0", - "InboundEnpointName39": "psinboundendpointname397vdesp", - "InboundEnpointName47": "psinboundendpointname47b407mp", - "InboundEndpointNamePrefix": "psinboundendpointname", - "SubnetId25": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname25i3rzxq/subnets/pssubnetname25o7c6wn", - "SubnetId18": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname18j4z0rw/subnets/pssubnetname18ic5zdg", - "SubnetId27": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname27rqwvt6/subnets/pssubnetname272bjv8p", - "SubnetId47": "/subscriptions/ea40042d-63d8-4d02-9261-fb31450e6c67/resourceGroups/powershelldnsresolvertestrg90enl5/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname47e87x3j/subnets/pssubnetname47r12bdy", - "DnsResolverName50": "psdnsresolvername5076w59g" -} diff --git a/src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 b/src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 index e64d36e6cb51..7ac7a912c009 100644 --- a/src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 +++ b/src/DnsResolver/DnsResolver.Autorest/test/utils.ps1 @@ -33,7 +33,8 @@ function setupEnv() { # as default. You could change them if needed. Import-Module -Name Az.Resources - Select-AzSubscription -SubscriptionObject (Get-AzSubscription -SubscriptionId ea40042d-63d8-4d02-9261-fb31450e6c67) + # ITE Validation + Select-AzSubscription -SubscriptionObject (Get-AzSubscription -SubscriptionId 91ab65d2-c73f-4768-89d0-b061815f258b) Register-AzResourceProvider -ProviderNamespace Microsoft.Network @@ -47,7 +48,7 @@ function setupEnv() { write-host "creating test resource group..." $resourceGroupName = "powershelldnsresolvertestrg" + (RandomString -allChars $false -len 6) - New-AzResourceGroup -Name $resourceGroupName -Location eastus2 -SubscriptionId $subscriptionId + New-AzResourceGroup -Name $resourceGroupName -Location westus2 -SubscriptionId $subscriptionId $env.Add("ResourceGroupName", $resourceGroupName) $null = $env.Add("DnsResolverNamePrefix", "psdnsresolvername"); @@ -58,7 +59,7 @@ function setupEnv() { $null = $env.Add("SuccessProvisioningState", "Succeeded"); - $null = $env.Add("ResourceLocation", "eastus2"); + $null = $env.Add("ResourceLocation", "westus2"); $null = $env.Add("MalformedVirtualNetworkErrorMessage", "Resource ID is not a valid virtual network resource ID"); $null = $env.Add("AddressPrefix", "40.121.0.0/16"); $null = $env.Add("LocationForVirtualNetwork", "westus2"); @@ -69,7 +70,7 @@ function setupEnv() { $null = $env.Add("NRP_SIMULATOR_URI", $nrpSimulatorUri); } - # Provison of virtual network and generating DNS Resolver name. + # Provison of virtual network and generating DNS Resolver names. # New-cmdlet uses 0 - 12 # Get-cmdlet uses 13 - 21 # Remove-cmdlet uses 22-32 @@ -78,50 +79,50 @@ function setupEnv() { # Patch IE - 46 - 49 # Get IE 50 - 60 # Remove IE 61 - 62 - $dnsResolverNameEnvKeyPrefix = "DnsResolverName" - $virtualNetworkIdEnvKeyPrefix = "VirtualNetworkId" - $subnetIdEnvKeyPrefix = "SubnetId" - $inboundEndpointNameEnvKeyPrefix = "InboundEnpointName" - For($i=0; $i -le 70; $i++){ - $dnsResolverNameEnvKey = $dnsResolverNameEnvKeyPrefix + $i - $dnsResolverName = $env.DnsResolverNamePrefix + $i + (RandomString -allChars $false -len 6) - $null = $env.Add($dnsResolverNameEnvKey, $dnsResolverName); - - $inboundEndpointNameEnvKey = $inboundEndpointNameEnvKeyPrefix + $i - $inboundEndpointName = $env.InboundEnpointNamePrefix + $i + (RandomString -allChars $false -len 6) - $null = $env.Add($inboundEndpointNameEnvKey, $inboundEndpointName); - - $virtualNetworkIdEnvKey = $virtualNetworkIdEnvKeyPrefix + $i - $virtualNetworkName = $env.VirtualNetworkNamePrefix + $i + (RandomString -allChars $false -len 6) - $virtualNetworkId = (CreateVirtualNetwork -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName).id - $null = $env.Add($virtualNetworkIdEnvKey, $virtualNetworkId); - - $subnetIdEnvKey = $subnetIdEnvKeyPrefix + $i - $subnetName = $env.SubnetNamePrefix + $i + (RandomString -allChars $false -len 6) - $subnetId = (CreateSubnet -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName -SubnetName $subnetName).id - $null = $env.Add($subnetIdEnvKey, $subnetId); - } - - # - $dnsResolverName = $env.DnsResolverName60 - $virtualNetworkId = $env.VirtualNetworkId60 - New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $env.ResourceGroupName -VirtualNetworkId $virtualNetworkId -Location $env.ResourceLocation -SubscriptionId $env.SubscriptionId - $virtualNetworkName = ExtractArmResourceName -ResourceId $virtualNetworkId - $numberOfInboundEndpointForGet = 3 - $inboundEndpointNamePrefixForGet = "inboundEndpointNameForGet" - $null = $env.Add("NumberOfInboundEndpointForGet", $numberOfInboundEndpointForGet); - $null = $env.Add("DnsResolverNameForInboundEndpointGet", $dnsResolverName); - $null = $env.Add("InboundEndpointNamePrefixForGet", $inboundEndpointNamePrefixForGet); - For($i=0; $i -lt $numberOfInboundEndpointForGet; $i++){ - $subnetName = "subnetNameForGet" + (RandomString -allChars $false -len 6) - $subnetid = (CreateSubnet -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName -SubnetName $subnetName).id - $privateIp = RandomIp - $inboundEndpointName = "inboundEndpointNameForGet" + (RandomString -allChars $false -len 6) - $null = $env.Add("InboundEndpointNamePrefixForGet" + $i, $inboundEndpointName); - $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress $privateIp -PrivateIPAllocationMethod Static -SubnetId $subnetid - write-host "creating test Inbound Endpoint for get ...name = " + $inboundEndpointName - # New-AzDnsResolverInboundEndpoint -DnsResolverName $dnsResolverName -Name $inboundEndpointName -ResourceGroupName $env.ResourceGroupName -IPConfiguration $ipConfiguration -SubscriptionId $env.SubscriptionId - } + # $dnsResolverNameEnvKeyPrefix = "DnsResolverName" + # $virtualNetworkIdEnvKeyPrefix = "VirtualNetworkId" + # $subnetIdEnvKeyPrefix = "SubnetId" + # $inboundEndpointNameEnvKeyPrefix = "InboundEnpointName" + # For($i=0; $i -le 70; $i++){ + # $dnsResolverNameEnvKey = $dnsResolverNameEnvKeyPrefix + $i + # $dnsResolverName = $env.DnsResolverNamePrefix + $i + (RandomString -allChars $false -len 6) + # $null = $env.Add($dnsResolverNameEnvKey, $dnsResolverName); + + # $inboundEndpointNameEnvKey = $inboundEndpointNameEnvKeyPrefix + $i + # $inboundEndpointName = $env.InboundEnpointNamePrefix + $i + (RandomString -allChars $false -len 6) + # $null = $env.Add($inboundEndpointNameEnvKey, $inboundEndpointName); + + # $virtualNetworkIdEnvKey = $virtualNetworkIdEnvKeyPrefix + $i + # $virtualNetworkName = $env.VirtualNetworkNamePrefix + $i + (RandomString -allChars $false -len 6) + # $virtualNetworkId = (CreateVirtualNetwork -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName).id + # $null = $env.Add($virtualNetworkIdEnvKey, $virtualNetworkId); + + # $subnetIdEnvKey = $subnetIdEnvKeyPrefix + $i + # $subnetName = $env.SubnetNamePrefix + $i + (RandomString -allChars $false -len 6) + # $subnetId = (CreateSubnet -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName -SubnetName $subnetName).id + # $null = $env.Add($subnetIdEnvKey, $subnetId); + # } + + # # + # $dnsResolverName = $env.DnsResolverName60 + # $virtualNetworkId = $env.VirtualNetworkId60 + # New-AzDnsResolver -Name $dnsResolverName -ResourceGroupName $env.ResourceGroupName -VirtualNetworkId $virtualNetworkId -Location $env.ResourceLocation -SubscriptionId $env.SubscriptionId + # $virtualNetworkName = ExtractArmResourceName -ResourceId $virtualNetworkId + # $numberOfInboundEndpointForGet = 3 + # $inboundEndpointNamePrefixForGet = "inboundEndpointNameForGet" + # $null = $env.Add("NumberOfInboundEndpointForGet", $numberOfInboundEndpointForGet); + # $null = $env.Add("DnsResolverNameForInboundEndpointGet", $dnsResolverName); + # $null = $env.Add("InboundEndpointNamePrefixForGet", $inboundEndpointNamePrefixForGet); + # For($i=0; $i -lt $numberOfInboundEndpointForGet; $i++){ + # $subnetName = "subnetNameForGet" + (RandomString -allChars $false -len 6) + # $subnetid = (CreateSubnet -SubscriptionId $env.SubscriptionId -ResourceGroupName $env.ResourceGroupName -VirtualNetworkName $virtualNetworkName -SubnetName $subnetName).id + # $privateIp = RandomIp + # $inboundEndpointName = "inboundEndpointNameForGet" + (RandomString -allChars $false -len 6) + # $null = $env.Add("InboundEndpointNamePrefixForGet" + $i, $inboundEndpointName); + # $ipConfiguration = New-AzDnsResolverIPConfigurationObject -PrivateIPAddress $privateIp -PrivateIPAllocationMethod Static -SubnetId $subnetid + # write-host "creating test Inbound Endpoint for get ...name = " + $inboundEndpointName + # # New-AzDnsResolverInboundEndpoint -DnsResolverName $dnsResolverName -Name $inboundEndpointName -ResourceGroupName $env.ResourceGroupName -IPConfiguration $ipConfiguration -SubscriptionId $env.SubscriptionId + # } $envFile = 'env.json' diff --git a/src/DnsResolver/DnsResolver/Az.DnsResolver.psd1 b/src/DnsResolver/DnsResolver/Az.DnsResolver.psd1 index c89e966e7e84..f7758cf6e5b9 100644 --- a/src/DnsResolver/DnsResolver/Az.DnsResolver.psd1 +++ b/src/DnsResolver/DnsResolver/Az.DnsResolver.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 5/16/2024 +# Generated on: 11/13/2024 # @{ @@ -51,19 +51,19 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.5'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'DnsResolver.Autorest/bin/Az.DnsResolver.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'DnsResolver.Autorest\Az.DnsResolver.format.ps1xml' +FormatsToProcess = 'DnsResolver.Autorest/Az.DnsResolver.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('DnsResolver.Autorest/Az.DnsResolver.psm1') @@ -72,24 +72,37 @@ NestedModules = @('DnsResolver.Autorest/Az.DnsResolver.psm1') FunctionsToExport = 'Get-AzDnsForwardingRuleset', 'Get-AzDnsForwardingRulesetForwardingRule', 'Get-AzDnsForwardingRulesetVirtualNetworkLink', 'Get-AzDnsResolver', - 'Get-AzDnsResolverInboundEndpoint', - 'Get-AzDnsResolverOutboundEndpoint', 'New-AzDnsForwardingRuleset', + 'Get-AzDnsResolverDomainList', 'Get-AzDnsResolverInboundEndpoint', + 'Get-AzDnsResolverOutboundEndpoint', 'Get-AzDnsResolverPolicy', + 'Get-AzDnsResolverPolicyDnsSecurityRule', + 'Get-AzDnsResolverPolicyVirtualNetworkLink', + 'New-AzDnsForwardingRuleset', 'New-AzDnsForwardingRulesetForwardingRule', 'New-AzDnsForwardingRulesetVirtualNetworkLink', 'New-AzDnsResolver', - 'New-AzDnsResolverInboundEndpoint', + 'New-AzDnsResolverDomainList', 'New-AzDnsResolverInboundEndpoint', 'New-AzDnsResolverIPConfigurationObject', - 'New-AzDnsResolverOutboundEndpoint', + 'New-AzDnsResolverOutboundEndpoint', 'New-AzDnsResolverPolicy', + 'New-AzDnsResolverPolicyDnsSecurityRule', + 'New-AzDnsResolverPolicyVirtualNetworkLink', 'New-AzDnsResolverTargetDnsServerObject', 'Remove-AzDnsForwardingRuleset', 'Remove-AzDnsForwardingRulesetForwardingRule', 'Remove-AzDnsForwardingRulesetVirtualNetworkLink', - 'Remove-AzDnsResolver', 'Remove-AzDnsResolverInboundEndpoint', + 'Remove-AzDnsResolver', 'Remove-AzDnsResolverDomainList', + 'Remove-AzDnsResolverInboundEndpoint', 'Remove-AzDnsResolverOutboundEndpoint', + 'Remove-AzDnsResolverPolicy', + 'Remove-AzDnsResolverPolicyDnsSecurityRule', + 'Remove-AzDnsResolverPolicyVirtualNetworkLink', 'Update-AzDnsForwardingRuleset', 'Update-AzDnsForwardingRulesetForwardingRule', 'Update-AzDnsForwardingRulesetVirtualNetworkLink', - 'Update-AzDnsResolver', 'Update-AzDnsResolverInboundEndpoint', - 'Update-AzDnsResolverOutboundEndpoint' + 'Update-AzDnsResolver', 'Update-AzDnsResolverDomainList', + 'Update-AzDnsResolverInboundEndpoint', + 'Update-AzDnsResolverOutboundEndpoint', + 'Update-AzDnsResolverPolicy', + 'Update-AzDnsResolverPolicyDnsSecurityRule', + 'Update-AzDnsResolverPolicyVirtualNetworkLink' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() @@ -115,7 +128,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','DnsResolver' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DnsResolver' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -140,7 +153,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/DnsResolver/DnsResolver/ChangeLog.md b/src/DnsResolver/DnsResolver/ChangeLog.md index dc4128e6aa8b..64aeb619827e 100644 --- a/src/DnsResolver/DnsResolver/ChangeLog.md +++ b/src/DnsResolver/DnsResolver/ChangeLog.md @@ -18,6 +18,11 @@ - Additional information about change #1 --> ## Upcoming Release +* Add 4 new DNS Resolver Policy (DNS Security Policy) resources into the commandlets + - DNS Resolver Policy (DNS Security Policy) + - DNS Security Rule + - DNS Resolver Policy Link (DNS Security Policy Link) + - DNS Resolver Domain List ## Version 1.0.0 * General availability for module Az.DnsResolver @@ -27,7 +32,7 @@ ## Version 0.2.1 * Reformatted exception message for cmdlets -* Upgraded API version to 2022-07-01 +* Upgraded API version to 2022-07-01 ## Version 0.2.0 * Preview release for module Az.DnsResolver diff --git a/src/DnsResolver/DnsResolver/help/Az.DnsResolver.md b/src/DnsResolver/DnsResolver/help/Az.DnsResolver.md index fde6e122b530..c6738c8e318c 100644 --- a/src/DnsResolver/DnsResolver/help/Az.DnsResolver.md +++ b/src/DnsResolver/DnsResolver/help/Az.DnsResolver.md @@ -23,12 +23,24 @@ Gets properties of a virtual network link to a DNS forwarding ruleset. ### [Get-AzDnsResolver](Get-AzDnsResolver.md) Gets properties of a DNS resolver. +### [Get-AzDnsResolverDomainList](Get-AzDnsResolverDomainList.md) +Gets properties of a DNS resolver domain list. + ### [Get-AzDnsResolverInboundEndpoint](Get-AzDnsResolverInboundEndpoint.md) Gets properties of an inbound endpoint for a DNS resolver. ### [Get-AzDnsResolverOutboundEndpoint](Get-AzDnsResolverOutboundEndpoint.md) Gets properties of an outbound endpoint for a DNS resolver. +### [Get-AzDnsResolverPolicy](Get-AzDnsResolverPolicy.md) +Gets properties of a DNS resolver policy. + +### [Get-AzDnsResolverPolicyDnsSecurityRule](Get-AzDnsResolverPolicyDnsSecurityRule.md) +Gets properties of a DNS security rule for a DNS resolver policy. + +### [Get-AzDnsResolverPolicyVirtualNetworkLink](Get-AzDnsResolverPolicyVirtualNetworkLink.md) +Gets properties of a DNS resolver policy virtual network link. + ### [New-AzDnsForwardingRuleset](New-AzDnsForwardingRuleset.md) Creates or updates a DNS forwarding ruleset. @@ -41,6 +53,9 @@ Creates or updates a virtual network link to a DNS forwarding ruleset. ### [New-AzDnsResolver](New-AzDnsResolver.md) Creates or updates a DNS resolver. +### [New-AzDnsResolverDomainList](New-AzDnsResolverDomainList.md) +Creates or updates a DNS resolver domain list. + ### [New-AzDnsResolverInboundEndpoint](New-AzDnsResolverInboundEndpoint.md) Creates or updates an inbound endpoint for a DNS resolver. @@ -50,6 +65,15 @@ Create a in-memory object for IPConfiguration ### [New-AzDnsResolverOutboundEndpoint](New-AzDnsResolverOutboundEndpoint.md) Creates or updates an outbound endpoint for a DNS resolver. +### [New-AzDnsResolverPolicy](New-AzDnsResolverPolicy.md) +Creates or updates a DNS resolver policy. + +### [New-AzDnsResolverPolicyDnsSecurityRule](New-AzDnsResolverPolicyDnsSecurityRule.md) +Creates or updates a DNS security rule for a DNS resolver policy. + +### [New-AzDnsResolverPolicyVirtualNetworkLink](New-AzDnsResolverPolicyVirtualNetworkLink.md) +Creates or updates a DNS resolver policy virtual network link. + ### [New-AzDnsResolverTargetDnsServerObject](New-AzDnsResolverTargetDnsServerObject.md) Create a in-memory object for Target DNS server @@ -70,6 +94,10 @@ WARNING: This operation cannot be undone. Deletes a DNS resolver. WARNING: This operation cannot be undone. +### [Remove-AzDnsResolverDomainList](Remove-AzDnsResolverDomainList.md) +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + ### [Remove-AzDnsResolverInboundEndpoint](Remove-AzDnsResolverInboundEndpoint.md) Deletes an inbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. @@ -78,6 +106,18 @@ WARNING: This operation cannot be undone. Deletes an outbound endpoint for a DNS resolver. WARNING: This operation cannot be undone. +### [Remove-AzDnsResolverPolicy](Remove-AzDnsResolverPolicy.md) +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicyDnsSecurityRule](Remove-AzDnsResolverPolicyDnsSecurityRule.md) +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +### [Remove-AzDnsResolverPolicyVirtualNetworkLink](Remove-AzDnsResolverPolicyVirtualNetworkLink.md) +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + ### [Update-AzDnsForwardingRuleset](Update-AzDnsForwardingRuleset.md) Updates a DNS forwarding ruleset. @@ -90,9 +130,21 @@ Updates a virtual network link to a DNS forwarding ruleset. ### [Update-AzDnsResolver](Update-AzDnsResolver.md) Updates a DNS resolver. +### [Update-AzDnsResolverDomainList](Update-AzDnsResolverDomainList.md) +Updates a DNS resolver domain list. + ### [Update-AzDnsResolverInboundEndpoint](Update-AzDnsResolverInboundEndpoint.md) Updates an inbound endpoint for a DNS resolver. ### [Update-AzDnsResolverOutboundEndpoint](Update-AzDnsResolverOutboundEndpoint.md) Updates an outbound endpoint for a DNS resolver. +### [Update-AzDnsResolverPolicy](Update-AzDnsResolverPolicy.md) +Updates a DNS resolver policy. + +### [Update-AzDnsResolverPolicyDnsSecurityRule](Update-AzDnsResolverPolicyDnsSecurityRule.md) +Updates a DNS security rule. + +### [Update-AzDnsResolverPolicyVirtualNetworkLink](Update-AzDnsResolverPolicyVirtualNetworkLink.md) +Updates a DNS resolver policy virtual network link. + diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRuleset.md index 1afc825eb0c4..bd3e00a80c8d 100644 --- a/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRuleset.md @@ -173,6 +173,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -257,9 +258,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRulesetForwardingRule.md index 789e499ec066..3f0655f9a674 100644 --- a/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRulesetForwardingRule.md @@ -146,6 +146,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -184,7 +185,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md index bca96cd45faa..ab72f02cd9bf 100644 --- a/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -146,6 +146,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -184,7 +185,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolver.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolver.md index 2a8ae31a1051..908e7e8ad618 100644 --- a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolver.md @@ -179,6 +179,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -263,9 +264,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.ISubResource +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..f67089d44ff8 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverDomainList.md @@ -0,0 +1,205 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Get-AzDnsResolverDomainList + +## SYNOPSIS +Gets properties of a DNS resolver domain list. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolverDomainList [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### List +``` +Get-AzDnsResolverDomainList -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverDomainList -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver domain list. + +## EXAMPLES + +### Example 1: List all DNS Resolver Domain Lists under the subscription +```powershell +Get-AzDnsResolverDomainList -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverdomainlisttestresolver2422 Microsoft.Network/dnsResolverDomainLists "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverdomainlisttestresolver2654 Microsoft.Network/dnsResolverDomainLists "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverdomainlisttestresolver8416 Microsoft.Network/dnsResolverDomainLists "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverdomainlisttestresolver5036 Microsoft.Network/dnsResolverDomainLists "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverdomainlisttestresolver3718 Microsoft.Network/dnsResolverDomainLists "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverdomainlisttestresolver2758 Microsoft.Network/dnsResolverDomainLists "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverdomainlisttestresolver7108 Microsoft.Network/dnsResolverDomainLists "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverdomainlisttestresolver7639 Microsoft.Network/dnsResolverDomainLists "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverdomainlisttestresolver5912 Microsoft.Network/dnsResolverDomainLists "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverdomainlisttestguli01 Microsoft.Network/dnsResolverDomainLists "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverdomainlisttestresolver9892 Microsoft.Network/dnsResolverDomainLists "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Domain Lists under the subscription. + +### Example 2: List all DNS Resolver Domain Lists under the resource group +```powershell +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000" +westus2 psdnsresolverdomainlistname34dp19g6 Microsoft.Network/dnsResolverDomainLists "0000c9d4-0000-0800-0000-604013990000" +westus2 psdnsresolverdomainlistname35m3jf0n Microsoft.Network/dnsResolverDomainLists "0000d0d4-0000-0800-0000-604013a80000" +``` + +This command gets all DNS Resolver Domain Lists under the resource group. + +### Example 3: Get single DNS Resolver by name +```powershell +Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Domain List by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: List1, Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List1, List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverInboundEndpoint.md index dc72d174e6f0..ae459af2ca3a 100644 --- a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverInboundEndpoint.md @@ -146,6 +146,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -184,7 +185,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverOutboundEndpoint.md index d96c42623b21..e987fadf495c 100644 --- a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverOutboundEndpoint.md @@ -146,6 +146,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] @@ -184,7 +185,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..3d781a953710 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicy.md @@ -0,0 +1,259 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicy + +## SYNOPSIS +Gets properties of a DNS resolver policy. + +## SYNTAX + +### List1 (Default) +``` +Get-AzDnsResolverPolicy [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### Get +``` +Get-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### List2 +``` +Get-AzDnsResolverPolicy -ResourceGroupName [-SubscriptionId ] -VirtualNetworkName + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### List +``` +Get-AzDnsResolverPolicy -ResourceGroupName [-SubscriptionId ] [-Top ] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicy -InputObject [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver policy. + +## EXAMPLES + +### Example 1: List all DNS Resolver Policies under the subscription +```powershell +Get-AzDnsResolverPolicy -SubscriptionId 0e5a46b1-de0b-4ec3-a5d7-dda908b4e076 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverpolicytestresolver2422 Microsoft.Network/dnsResolverPolicies "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverpolicytestresolver2654 Microsoft.Network/dnsResolverPolicies "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverpolicytestresolver8416 Microsoft.Network/dnsResolverPolicies "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverpolicytestresolver5036 Microsoft.Network/dnsResolverPolicies "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverpolicytestresolver3718 Microsoft.Network/dnsResolverPolicies "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverpolicytestresolver2758 Microsoft.Network/dnsResolverPolicies "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverpolicytestresolver7108 Microsoft.Network/dnsResolverPolicies "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverpolicytestresolver7639 Microsoft.Network/dnsResolverPolicies "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverpolicytestresolver5912 Microsoft.Network/dnsResolverPolicies "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverpolicytestguli01 Microsoft.Network/dnsResolverPolicies "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverpolicytestresolver9892 Microsoft.Network/dnsResolverPolicies "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Policies under the subscription. + +### Example 2: List all DNS Resolver Policies under the resource group +```powershell +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000" +westus2 psdnsresolverpolicyname34dp19g6 Microsoft.Network/dnsResolverPolicies "0000c9d4-0000-0800-0000-604013990000" +westus2 psdnsresolverpolicyname35m3jf0n Microsoft.Network/dnsResolverPolicies "0000d0d4-0000-0800-0000-604013a80000" +``` + +This command gets all DNS Resolver Policies under the resource group. + +### Example 3: Get single DNS Resolver by name +```powershell +Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Policy by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List2, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: List1, Get, List2, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List1, List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkName +The name of the virtual network. + +```yaml +Type: System.String +Parameter Sets: List2 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..4378ed5c50a7 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,201 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Gets properties of a DNS security rule for a DNS resolver policy. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicyDnsSecurityRule -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS security rule for a DNS resolver policy. + +## EXAMPLES + +### Example 1: List all DNS Security Rule under the dns resolver policy +```powershell +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnssecurityruletestresolver2422 Microsoft.Network/dnsSecurityRules "8b002671-0000-0800-0000-60386dc10000" +westus2 dnssecurityruletestresolver2654 Microsoft.Network/dnsSecurityRules "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnssecurityruletestresolver8416 Microsoft.Network/dnsSecurityRules "94008a5e-0000-0800-0000-603972f20000" +westus2 dnssecurityruletestresolver5036 Microsoft.Network/dnsSecurityRules "8b002f71-0000-0800-0000-60386df80000" +westus2 dnssecurityruletestresolver3718 Microsoft.Network/dnsSecurityRules "00009b95-0000-0800-0000-603e8b210000" +westus2 dnssecurityruletestresolver2758 Microsoft.Network/dnsSecurityRules "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnssecurityruletestresolver7108 Microsoft.Network/dnsSecurityRules "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnssecurityruletestresolver7639 Microsoft.Network/dnsSecurityRules "8b00b670-0000-0800-0000-60386b010000" +westus2 dnssecurityruletestresolver5912 Microsoft.Network/dnsSecurityRules "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnssecurityruletestguli01 Microsoft.Network/dnsSecurityRules "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnssecurityruletestresolver9892 Microsoft.Network/dnsSecurityRules "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Security Rule under the dns resolver policy. + +### Example 2: Get single DNS Security Rule by name +```powershell +Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnssecurityrulename33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Security Rule by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: List, Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..6d73ad523c8f --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Get-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,201 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/get-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Get-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Gets properties of a DNS resolver policy virtual network link. + +## SYNTAX + +### List (Default) +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -ResourceGroupName + [-SubscriptionId ] [-Top ] [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Gets properties of a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: List all DNS Resolver Policy Links under the dns resolver policy +```powershell +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName exampleResourceGroup -DnsResolverPolicyName exampleDnsResolverPolicy +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 dnsresolverpolicylinktestresolver2422 Microsoft.Network/dnsResolverPolicyLinks "8b002671-0000-0800-0000-60386dc10000" +westus2 dnsresolverpolicylinktestresolver2654 Microsoft.Network/dnsResolverPolicyLinks "8b000f71-0000-0800-0000-60386cc40000" +westus2 dnsresolverpolicylinktestresolver8416 Microsoft.Network/dnsResolverPolicyLinks "94008a5e-0000-0800-0000-603972f20000" +westus2 dnsresolverpolicylinktestresolver5036 Microsoft.Network/dnsResolverPolicyLinks "8b002f71-0000-0800-0000-60386df80000" +westus2 dnsresolverpolicylinktestresolver3718 Microsoft.Network/dnsResolverPolicyLinks "00009b95-0000-0800-0000-603e8b210000" +westus2 dnsresolverpolicylinktestresolver2758 Microsoft.Network/dnsResolverPolicyLinks "8b00da70-0000-0800-0000-60386b4f0000" +westus2 dnsresolverpolicylinktestresolver7108 Microsoft.Network/dnsResolverPolicyLinks "00008e95-0000-0800-0000-603e8aee0000" +westus2 dnsresolverpolicylinktestresolver7639 Microsoft.Network/dnsResolverPolicyLinks "8b00b670-0000-0800-0000-60386b010000" +westus2 dnsresolverpolicylinktestresolver5912 Microsoft.Network/dnsResolverPolicyLinks "8a00557f-0000-0800-0000-603853bc0000" +westus2 dnsresolverpolicylinktestguli01 Microsoft.Network/dnsResolverPolicyLinks "48009f1b-0000-0800-0000-60302ec40000" +westus2 dnsresolverpolicylinktestresolver9892 Microsoft.Network/dnsResolverPolicyLinks "47008640-0000-0800-0000-60300f220000" +``` + +This command gets all DNS Resolver Policy Links under the dns resolver policy. + +### Example 2: Get single DNS Resolver Policy Link by name +```powershell +Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName $resolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000c2d4-0000-0800-0000-604013880000" +``` + +This command gets a single DNS Resolver Policy Link by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: List, Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Top +The maximum number of results to return. +If not specified, returns up to 100 results. + +```yaml +Type: System.Int32 +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRuleset.md index 5b2a87353b86..95a81adf67ab 100644 --- a/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRuleset.md @@ -90,7 +90,7 @@ 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.Api20220701.ISubResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Parameter Sets: (All) Aliases: @@ -197,6 +197,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -263,7 +264,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRulesetForwardingRule.md index ec0343cf6437..e882125dcbbd 100644 --- a/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRulesetForwardingRule.md @@ -197,6 +197,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -215,7 +216,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.Api20220701.ITargetDnsServer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] Parameter Sets: (All) Aliases: @@ -264,7 +265,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md index ce8df0085a95..4658569b68fb 100644 --- a/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -194,6 +194,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -260,7 +261,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolver.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolver.md index e52e27c13398..3755a6beb3fc 100644 --- a/src/DnsResolver/DnsResolver/help/New-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolver.md @@ -179,6 +179,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -260,7 +261,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..ceb7d6c56c6b --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverDomainList.md @@ -0,0 +1,268 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# New-AzDnsResolverDomainList + +## SYNOPSIS +Creates or updates a DNS resolver domain list. + +## SYNTAX + +``` +New-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-IfNoneMatch ] -Domain -Location [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver domain list. + +## EXAMPLES + +### Example 1: Create a DNS resolver domain list +```powershell +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverDomainList Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver domain list. + +### Example 2: Create a DNS resolver domain list with tag +```powershell +New-AzDnsResolverDomainList -Name sampleResolverDomainList -ResourceGroupName powershell-test-rg -Location westus2 -Domain @("contoso.com.", "example.com.") -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverDomainList Microsoft.Network/dnsResolverPolicies "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver domain list with tag. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Domain +The domains in the domain list. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverIPConfigurationObject.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverIPConfigurationObject.md index c7a52d168cbf..9592544f4adc 100644 --- a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverIPConfigurationObject.md +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverIPConfigurationObject.md @@ -90,7 +90,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IPConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IPConfiguration ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverInboundEndpoint.md index 186735a8acc7..b3847ab714f3 100644 --- a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverInboundEndpoint.md @@ -138,7 +138,7 @@ 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.Api20220701.IIPConfiguration[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IIPConfiguration[] Parameter Sets: (All) Aliases: @@ -212,6 +212,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -278,7 +279,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverOutboundEndpoint.md index 9f874b07ed87..e09299d61490 100644 --- a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverOutboundEndpoint.md @@ -209,6 +209,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -275,7 +276,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..be9f04752256 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicy.md @@ -0,0 +1,252 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicy +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicy + +## SYNOPSIS +Creates or updates a DNS resolver policy. + +## SYNTAX + +``` +New-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-IfNoneMatch ] -Location [-Tag ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver policy. + +## EXAMPLES + +### Example 1: Create a DNS resolver policy +```powershell +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver policy. + +### Example 2: Create a DNS resolver policy with tag +```powershell +New-AzDnsResolverPolicy -Name sampleResolverPolicy -ResourceGroupName powershell-test-rg -Location westus2 -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicy Microsoft.Network/dnsResolvers "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver policy with tag. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..bc6f22b53f84 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,346 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Creates or updates a DNS security rule for a DNS resolver policy. + +## SYNTAX + +``` +New-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + -DnsResolverDomainList -Location -Priority + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsSecurityRuleState ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Creates or updates a DNS security rule for a DNS resolver policy. + +## EXAMPLES + +### Example 1: Create a DNS security rule +```powershell +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS security rule. + +### Example 2: Create a DNS security rule with tag +```powershell +New-AzDnsResolverPolicyDnsSecurityRule -Name sampleSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -Location westus2 -DnsSecurityRuleState "Enabled" -ActionType "Block" -ActionBlockResponseCode "SERVFAIL" -Priority 100 -DnsResolverDomainList @{id = "/subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/dnsResolverDomainLists/exampleDomainListName";} -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleSecurityRule Microsoft.Network/dnsSecurityRules "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS security rule with tag. + +## PARAMETERS + +### -ActionBlockResponseCode +The response code for block actions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionType +The type of action to take. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverDomainList +DNS resolver policy domains lists that the DNS security rule applies to. +To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsSecurityRuleState +The state of DNS security rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the DNS security rule. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..99b2bf5415b3 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,283 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/new-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# New-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Creates or updates a DNS resolver policy virtual network link. + +## SYNTAX + +``` +New-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-IfNoneMatch ] + -Location -VirtualNetworkId [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Creates or updates a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: Create a DNS resolver policy link +```powershell +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-08b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "000027d5-0000-0800-0000-6040150e0000" +``` + +This cmdlet creates a DNS resolver policy link. + +### Example 2: Create a DNS resolver policy link with tag +```powershell +New-AzDnsResolverPolicyVirtualNetworkLink -Name sampleResolverPolicyLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName samplePolicyName -VirtualNetworkId /subscriptions/0e5a46b1-de0b-4ec3-a5d7-dda908b4e076/resourceGroups/powershell-test-rg/providers/Microsoft.Network/virtualNetworks/psvirtualnetworkname16y71mjc -Location westus2 -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 sampleResolverPolicyLink Microsoft.Network/dnsResolverPolicyLinks "00008cd5-0000-0800-0000-604016c90000" +``` + +This cmdlet creates a DNS resolver policy link with tag. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IfNoneMatch +Set to '*' to allow a new resource to be created, but to prevent updating an existing resource. +Other values will be ignored. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkId +Resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverTargetDnsServerObject.md b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverTargetDnsServerObject.md index 8579955e6fda..9741f5c1e598 100644 --- a/src/DnsResolver/DnsResolver/help/New-AzDnsResolverTargetDnsServerObject.md +++ b/src/DnsResolver/DnsResolver/help/New-AzDnsResolverTargetDnsServerObject.md @@ -74,7 +74,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.TargetDnsServer +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.TargetDnsServer ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRuleset.md index 34d307958f50..08c0d055a81a 100644 --- a/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRuleset.md @@ -179,6 +179,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRulesetForwardingRule.md index 0450b6592f66..9d704f99408a 100644 --- a/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRulesetForwardingRule.md @@ -163,6 +163,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md index 0be97039974d..656ecf8da5a0 100644 --- a/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -192,6 +192,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolver.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolver.md index 8fadca09466d..eedb281e1a49 100644 --- a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolver.md @@ -176,6 +176,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..cc221e9c48f4 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverDomainList.md @@ -0,0 +1,238 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Remove-AzDnsResolverDomainList + +## SYNOPSIS +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverDomainList -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +Deletes a DNS resolver domain list. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: Remove a DNS Resolver Domain List by name +```powershell +Remove-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` + +This command removes a DNS Resolver Domain List by name. + +### Example 2: Remove a DNS Resolver Domain List by identity +```powershell +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject +``` + +This command removes a DNS Resolver Domain List by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverInboundEndpoint.md index aa6c2b782ade..4aca5d5f7f7e 100644 --- a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverInboundEndpoint.md @@ -193,6 +193,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverOutboundEndpoint.md index da83826db21e..0eaacdf28a7a 100644 --- a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverOutboundEndpoint.md @@ -192,6 +192,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..91b74785e31b --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicy.md @@ -0,0 +1,237 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicy + +## SYNOPSIS +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicy -InputObject [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Deletes a DNS resolver policy. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: Remove a Dns Resolver Policy by name +```powershell +Remove-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +``` + +This command removes a Dns Resolver Policy by name. + +### Example 2: Remove a Dns Resolver Policy by identity +```powershell +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolvername33nmy1fz +Remove-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject +``` + +This command removes a Dns Resolver Policy by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..665df759e325 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,253 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +Deletes a DNS security rule for a DNS resolver policy. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: Remove a DNS Security Rule by name +```powershell +Remove-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +``` + +This command removes a DNS Security Rule by name. + +### Example 2: Remove a DNS Security Rule by identity +```powershell +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Remove-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject +``` + +This command removes a DNS Security Rule by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..d1b9a5b35294 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Remove-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,253 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/remove-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Remove-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentity +``` +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-IfMatch ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +## DESCRIPTION +Deletes a DNS resolver policy virtual network link. +WARNING: This operation cannot be undone. + +## EXAMPLES + +### Example 1: Remove a DNS Resolver Policy Link by name +```powershell +Remove-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +``` + +This command removes a DNS Resolver Policy Link by name. + +### Example 2: Remove a DNS Resolver Policy Link by identity +```powershell +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Remove-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject +``` + +This command removes a DNS Resolver Policy Link by identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRuleset.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRuleset.md index 200dbc2ae426..443b183c76f5 100644 --- a/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRuleset.md +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRuleset.md @@ -97,7 +97,7 @@ 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.Api20220701.ISubResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] Parameter Sets: (All) Aliases: @@ -189,6 +189,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -257,7 +258,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsForwardingRuleset ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRulesetForwardingRule.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRulesetForwardingRule.md index f9bcd4cd7635..0fcd6333d02e 100644 --- a/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRulesetForwardingRule.md +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRulesetForwardingRule.md @@ -188,6 +188,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -206,7 +207,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.Api20220701.ITargetDnsServer[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ITargetDnsServer[] Parameter Sets: (All) Aliases: @@ -257,7 +258,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IForwardingRule ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md index b7c0f3221d06..27b4deda516a 100644 --- a/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsForwardingRulesetVirtualNetworkLink.md @@ -203,6 +203,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -256,7 +257,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IVirtualNetworkLink ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolver.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolver.md index d35694be15fc..c2701ce7b3b5 100644 --- a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolver.md +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolver.md @@ -172,6 +172,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -240,7 +241,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolver ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverDomainList.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverDomainList.md new file mode 100644 index 000000000000..bc9ab713b573 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverDomainList.md @@ -0,0 +1,263 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverdomainlist +schema: 2.0.0 +--- + +# Update-AzDnsResolverDomainList + +## SYNOPSIS +Updates a DNS resolver domain list. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverDomainList -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-Domain ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverDomainList -InputObject [-IfMatch ] [-Domain ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Updates a DNS resolver domain list. + +## EXAMPLES + +### Example 1: Update an existing DNS Resolver Domain List by name +```powershell +Update-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Domain List by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver Domain List by identity +```powershell +$dnsResolverDomainListObject = Get-AzDnsResolverDomainList -ResourceGroupName powershell-test-rg -Name psdnsresolverdomainlistname33nmy1fz +Update-AzDnsResolverDomainList -InputObject $dnsResolverDomainListObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverdomainlistname33nmy1fz Microsoft.Network/dnsResolverDomainLists "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Domain List by identity ( removing tag ). + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Domain +The domains in the domain list. + +```yaml +Type: System.String[] +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver domain list. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverDomainListName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS resolver domain list. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverDomainList + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverInboundEndpoint.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverInboundEndpoint.md index f8bb7762e02d..89c19ce3f973 100644 --- a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverInboundEndpoint.md +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverInboundEndpoint.md @@ -187,6 +187,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -255,7 +256,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IInboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverOutboundEndpoint.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverOutboundEndpoint.md index fc799ab7f3d2..a57f9394491a 100644 --- a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverOutboundEndpoint.md +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverOutboundEndpoint.md @@ -187,6 +187,7 @@ Accept wildcard characters: False ### -SubscriptionId The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String @@ -255,7 +256,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IOutboundEndpoint ## NOTES diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicy.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicy.md new file mode 100644 index 000000000000..20a3b7ae8b91 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicy.md @@ -0,0 +1,248 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicy +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicy + +## SYNOPSIS +Updates a DNS resolver policy. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicy -Name -ResourceGroupName [-SubscriptionId ] + [-IfMatch ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicy -InputObject [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +## DESCRIPTION +Updates a DNS resolver policy. + +## EXAMPLES + +### Example 1: Update an existing DNS Resolver Policy by name +```powershell +Update-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver Policy by identity +```powershell +$dnsResolverPolicyObject = Get-AzDnsResolverPolicy -ResourceGroupName powershell-test-rg -Name psdnsresolverpolicyname33nmy1fz +Update-AzDnsResolverPolicy -InputObject $dnsResolverPolicyObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicyname33nmy1fz Microsoft.Network/dnsResolverPolicies "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy by identity ( removing tag ). + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverPolicyName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS resolver policy. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicy + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicyDnsSecurityRule.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicyDnsSecurityRule.md new file mode 100644 index 000000000000..440eef45ec37 --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicyDnsSecurityRule.md @@ -0,0 +1,344 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicydnssecurityrule +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicyDnsSecurityRule + +## SYNOPSIS +Updates a DNS security rule. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicyDnsSecurityRule -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsResolverDomainList ] [-DnsSecurityRuleState ] [-Priority ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject [-IfMatch ] + [-ActionBlockResponseCode ] [-ActionType ] + [-DnsResolverDomainList ] [-DnsSecurityRuleState ] [-Priority ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Updates a DNS security rule. + +## EXAMPLES + +### Example 1: Update an existing DNS Security Rule by name +```powershell +Update-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Security Rules by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver by identity +```powershell +$dnsSecurityRuleObject = Get-AzDnsResolverPolicyDnsSecurityRule -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnssecurityrulename33nmy1fz +Update-AzDnsResolverPolicyDnsSecurityRule -InputObject $dnsSecurityRuleObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnssecurityrulename33nmy1fz Microsoft.Network/dnsSecurityRules "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Security Rules by identity ( removing tag ). + +## PARAMETERS + +### -ActionBlockResponseCode +The response code for block actions. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.BlockResponseCode +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ActionType +The type of action to take. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.ActionType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverDomainList +DNS resolver policy domains lists that the DNS security rule applies to. +To construct, see NOTES section for DNSRESOLVERDOMAINLIST properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.ISubResource[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsSecurityRuleState +The state of DNS security rule. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Support.DnsSecurityRuleState +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS security rule. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsSecurityRuleName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Priority +The priority of the DNS security rule. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for DNS security rule. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsSecurityRule + +## NOTES + +## RELATED LINKS diff --git a/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicyVirtualNetworkLink.md b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicyVirtualNetworkLink.md new file mode 100644 index 000000000000..0ea05a6c601d --- /dev/null +++ b/src/DnsResolver/DnsResolver/help/Update-AzDnsResolverPolicyVirtualNetworkLink.md @@ -0,0 +1,264 @@ +--- +external help file: Az.DnsResolver-help.xml +Module Name: Az.DnsResolver +online version: https://learn.microsoft.com/powershell/module/az.dnsresolver/update-azdnsresolverpolicyvirtualnetworklink +schema: 2.0.0 +--- + +# Update-AzDnsResolverPolicyVirtualNetworkLink + +## SYNOPSIS +Updates a DNS resolver policy virtual network link. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzDnsResolverPolicyVirtualNetworkLink -DnsResolverPolicyName -Name + -ResourceGroupName [-SubscriptionId ] [-IfMatch ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject [-IfMatch ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Updates a DNS resolver policy virtual network link. + +## EXAMPLES + +### Example 1: Update an existing DNS Resolver Policy Link by name +```powershell +Update-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz -Tag @{"key0" = "value0"} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy Links by name ( adding tag ). + +### Example 2: Updates an existing DNS Resolver by identity +```powershell +$dnsResolverPolicyLinkObject = Get-AzDnsResolverPolicyVirtualNetworkLink -ResourceGroupName powershell-test-rg -DnsResolverPolicyName exampleDnsResolverPolicyName -Name psdnsresolverpolicylinkname33nmy1fz +Update-AzDnsResolverPolicyVirtualNetworkLink -InputObject $dnsResolverPolicyLinkObject -Tag @{} +``` + +```output +Location Name Type Etag +-------- ---- ---- ---- +westus2 psdnsresolverpolicylinkname33nmy1fz Microsoft.Network/dnsResolverPolicyLinks "0000efd6-0000-0800-0000-60401c7c0000" +``` + +This command updates an existing DNS Resolver Policy Links by identity ( removing tag ). + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DnsResolverPolicyName +The name of the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +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. +Specify the last-seen ETag value to prevent accidentally overwriting any concurrent changes. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the DNS resolver policy virtual network link for the DNS resolver policy. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: DnsResolverPolicyVirtualNetworkLinkName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Tags for the DNS resolver policy virtual network link. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.IDnsResolverIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20230701Preview.IDnsResolverPolicyVirtualNetworkLink + +## NOTES + +## RELATED LINKS diff --git a/tools/StaticAnalysis/Exceptions/Az.Accounts/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.Accounts/BreakingChangeIssues.csv index dc17556737b8..d08faded265f 100644 --- a/tools/StaticAnalysis/Exceptions/Az.Accounts/BreakingChangeIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.Accounts/BreakingChangeIssues.csv @@ -8,3 +8,4 @@ "Az.Accounts","Microsoft.Azure.Commands.Profile.Context.RenameAzureRmContext","Rename-AzContext","0","1050","The parameter set 'RenameByName' for cmdlet 'Rename-AzContext' has been removed.","Add parameter set 'RenameByName' back to cmdlet 'Rename-AzContext'." "Az.Accounts","Microsoft.Azure.Commands.Profile.Context.SelectAzureRmContext","Select-AzContext","0","2000","The cmdlet 'Select-AzContext' no longer supports the parameter 'Name' and no alias was found for the original parameter name.","Add the parameter 'Name' back to the cmdlet 'Select-AzContext', or add an alias to the original parameter name." "Az.Accounts","Microsoft.Azure.Commands.Profile.Context.SelectAzureRmContext","Select-AzContext","0","1050","The parameter set 'SelectByName' for cmdlet 'Select-AzContext' has been removed.","Add parameter set 'SelectByName' back to cmdlet 'Select-AzContext'." +"Az.Accounts","Microsoft.Azure.Commands.Profile.Errors.ResolveError","Resolve-AzError","0","1010","The cmdlet 'Resolve-AzError' no longer supports the alias 'Resolve-Error'.","Add the alias 'Resolve-Error back to the cmdlet 'Resolve-AzError'." diff --git a/tools/StaticAnalysis/Exceptions/Az.DnsResolver/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.DnsResolver/BreakingChangeIssues.csv new file mode 100644 index 000000000000..595e0a13a894 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.DnsResolver/BreakingChangeIssues.csv @@ -0,0 +1,109 @@ +"Module","ClassName","Target","Severity","ProblemId","Description","Remediation" +"Az.DnsResolver","Get-AzDnsForwardingRuleset","Get-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Get-AzDnsForwardingRuleset","Get-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Get-AzDnsForwardingRuleset","Get-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Get-AzDnsForwardingRuleset","Get-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Get-AzDnsForwardingRuleset","Get-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Get-AzDnsForwardingRuleset","Get-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetForwardingRule","Get-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetForwardingRule","Get-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetForwardingRule","Get-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetForwardingRule","Get-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetForwardingRule","Get-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetForwardingRule","Get-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetVirtualNetworkLink","Get-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetVirtualNetworkLink","Get-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetVirtualNetworkLink","Get-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetVirtualNetworkLink","Get-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetVirtualNetworkLink","Get-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Get-AzDnsForwardingRulesetVirtualNetworkLink","Get-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Get-AzDnsResolver","Get-AzDnsResolver","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Get-AzDnsResolver","Get-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Get-AzDnsResolver","Get-AzDnsResolver","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Get-AzDnsResolver","Get-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Get-AzDnsResolver","Get-AzDnsResolver","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Get-AzDnsResolver","Get-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Get-AzDnsResolverInboundEndpoint","Get-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverInboundEndpoint","Get-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverInboundEndpoint","Get-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverInboundEndpoint","Get-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverInboundEndpoint","Get-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverInboundEndpoint","Get-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverOutboundEndpoint","Get-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverOutboundEndpoint","Get-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverOutboundEndpoint","Get-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverOutboundEndpoint","Get-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverOutboundEndpoint","Get-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Get-AzDnsResolverOutboundEndpoint","Get-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","New-AzDnsForwardingRuleset","New-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","New-AzDnsForwardingRuleset","New-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","New-AzDnsForwardingRuleset","New-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","New-AzDnsForwardingRuleset","New-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","New-AzDnsForwardingRuleset","New-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","New-AzDnsForwardingRuleset","New-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","New-AzDnsForwardingRulesetForwardingRule","New-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","New-AzDnsForwardingRulesetForwardingRule","New-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","New-AzDnsForwardingRulesetForwardingRule","New-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","New-AzDnsForwardingRulesetForwardingRule","New-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","New-AzDnsForwardingRulesetForwardingRule","New-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","New-AzDnsForwardingRulesetForwardingRule","New-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","New-AzDnsForwardingRulesetVirtualNetworkLink","New-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","New-AzDnsForwardingRulesetVirtualNetworkLink","New-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","New-AzDnsForwardingRulesetVirtualNetworkLink","New-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","New-AzDnsForwardingRulesetVirtualNetworkLink","New-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","New-AzDnsForwardingRulesetVirtualNetworkLink","New-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","New-AzDnsForwardingRulesetVirtualNetworkLink","New-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","New-AzDnsResolver","New-AzDnsResolver","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","New-AzDnsResolver","New-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","New-AzDnsResolver","New-AzDnsResolver","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","New-AzDnsResolver","New-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","New-AzDnsResolver","New-AzDnsResolver","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","New-AzDnsResolver","New-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","New-AzDnsResolverInboundEndpoint","New-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverInboundEndpoint","New-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverInboundEndpoint","New-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverInboundEndpoint","New-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverInboundEndpoint","New-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverInboundEndpoint","New-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverOutboundEndpoint","New-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverOutboundEndpoint","New-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverOutboundEndpoint","New-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverOutboundEndpoint","New-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverOutboundEndpoint","New-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","New-AzDnsResolverOutboundEndpoint","New-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Update-AzDnsForwardingRuleset","Update-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Update-AzDnsForwardingRuleset","Update-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Update-AzDnsForwardingRuleset","Update-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Update-AzDnsForwardingRuleset","Update-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Update-AzDnsForwardingRuleset","Update-AzDnsForwardingRuleset","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Update-AzDnsForwardingRuleset","Update-AzDnsForwardingRuleset","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsForwardingRuleset'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetForwardingRule","Update-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetForwardingRule","Update-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetForwardingRule","Update-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetForwardingRule","Update-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetForwardingRule","Update-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetForwardingRule","Update-AzDnsForwardingRulesetForwardingRule","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IForwardingRule'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetVirtualNetworkLink","Update-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetVirtualNetworkLink","Update-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetVirtualNetworkLink","Update-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetVirtualNetworkLink","Update-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetVirtualNetworkLink","Update-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Update-AzDnsForwardingRulesetVirtualNetworkLink","Update-AzDnsForwardingRulesetVirtualNetworkLink","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IVirtualNetworkLink'." +"Az.DnsResolver","Update-AzDnsResolver","Update-AzDnsResolver","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Update-AzDnsResolver","Update-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Update-AzDnsResolver","Update-AzDnsResolver","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Update-AzDnsResolver","Update-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Update-AzDnsResolver","Update-AzDnsResolver","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Update-AzDnsResolver","Update-AzDnsResolver","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IDnsResolver'." +"Az.DnsResolver","Update-AzDnsResolverInboundEndpoint","Update-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverInboundEndpoint","Update-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverInboundEndpoint","Update-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverInboundEndpoint","Update-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverInboundEndpoint","Update-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverInboundEndpoint","Update-AzDnsResolverInboundEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IInboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverOutboundEndpoint","Update-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverOutboundEndpoint","Update-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedByType' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedByType' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverOutboundEndpoint","Update-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverOutboundEndpoint","Update-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedAt' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedAt' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverOutboundEndpoint","Update-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataCreatedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataCreatedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'." +"Az.DnsResolver","Update-AzDnsResolverOutboundEndpoint","Update-AzDnsResolverOutboundEndpoint","0","3010","The property 'SystemDataLastModifiedBy' of type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint' has been removed.","Add the property 'SystemDataLastModifiedBy' back to type 'Microsoft.Azure.PowerShell.Cmdlets.DnsResolver.Models.Api20220701.IOutboundEndpoint'."